Skip to content

Commit

Permalink
修复返回数据里的带标签的内容如<img src="xxx" />被直接显示在界面上的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mokang committed Jun 22, 2018
1 parent 76a86ed commit f0d234d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class VConsoleNetworkTab extends VConsolePlugin {
case 'json':
if (typeof item.response != 'undefined') {
domData.response = JSON.stringify(item.response, null, 1);
domData.response = tool.htmlEncode(domData.response);
}
break;
case 'blob':
Expand Down

0 comments on commit f0d234d

Please sign in to comment.