We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016875b commit cc51b6bCopy full SHA for cc51b6b
doc/prep.js
@@ -60,9 +60,10 @@ while ((line = lines[cur++]) != null) {
60
var html = '<pre class="cm-s-default">', curstr = "", curstyle = null;
61
function add(str, style) {
62
if (style != curstyle) {
63
- if (curstyle) html += '<span class="cm-' + curstyle + '">' + curstr
64
- + "</span>";
65
- else if (curstr) html += curstr;
+ if (curstyle) html +=
+ '<span class="cm-' + CodeMirror.htmlEscape(curstyle) + '">' +
+ CodeMirror.htmlEscape(curstr) + "</span>";
66
+ else if (curstr) html += CodeMirror.htmlEscape(curstr);
67
curstr = str; curstyle = style;
68
} else curstr += str;
69
}
0 commit comments