Skip to content

Commit 4a9ab29

Browse files
author
Mostafa Eweda
committed
Replace angle brackets by unicode equivalents because apf doesn't accept angle brackets in attribute values - was causing an xml parsing error
1 parent f450bf8 commit 4a9ab29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins-client/ext.debugger/inspector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ exports.consoleTextHandler = function(e) {
123123
refs.push(props[i].ref);
124124

125125
var pre = "<a class='xmlhl' href='javascript:void(0)' onclick='require(\"ext/debugger/inspector\").showObject(\""
126-
+ apf.escapeXML(xmlNode.xml.replace(/"/g, "\\\"")) + "\", "
126+
// replace angle brackets by unicode equivalents because apf doesn't accept angle brackets in attribute values
127+
+ apf.escapeXML(xmlNode.xml.replace(/"/g, "\\\"").replace(/&lt;/g, "\u3008").replace(/&gt;/, "\u3009")) + "\", "
127128
+ ref + ", \"" + apf.escapeXML((expression || "").trim().split(/;|\n/).pop().trim().replace(/"/g, "\\\"")) + "\")'>";
128129
var post = " }</a>";
129130

0 commit comments

Comments
 (0)