diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-18 19:23:01 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-18 19:23:01 -0800 |
commit | 436f003ae6a2aed1e661fa4364ae33991210d92d (patch) | |
tree | 7c9498291f65ce79a818529e480264449cc5061f /js/lib | |
parent | 318aa82f73448275f4653b18e7d154782aa220c5 (diff) |
html.js - explicitly specify second parameter of escapeXml.
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/html.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/html.js b/js/lib/html.js index 2e93671..74a854c 100644 --- a/js/lib/html.js +++ b/js/lib/html.js @@ -70,7 +70,7 @@ var renderNodes = function(block) { switch (node.type) { case 'Text': - out(esc(node.literal)); + out(esc(node.literal, false)); break; case 'Softbreak': @@ -125,7 +125,7 @@ var renderNodes = function(block) { break; case 'Code': - out(tag('code') + esc(node.literal) + tag('/code')); + out(tag('code') + esc(node.literal, false) + tag('/code')); break; case 'Document': @@ -204,7 +204,7 @@ var renderNodes = function(block) { } cr(); out(tag('pre') + tag('code', attrs)); - out(esc(node.literal)); + out(esc(node.literal, false)); out(tag('/code') + tag('/pre')); cr(); break; |