summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-18 19:23:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-18 19:23:01 -0800
commit436f003ae6a2aed1e661fa4364ae33991210d92d (patch)
tree7c9498291f65ce79a818529e480264449cc5061f /js
parent318aa82f73448275f4653b18e7d154782aa220c5 (diff)
html.js - explicitly specify second parameter of escapeXml.
Diffstat (limited to 'js')
-rw-r--r--js/lib/html.js6
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;