Skip to content

Commit a96c48f

Browse files
committed
Don't escape &
1 parent 2d3f32e commit a96c48f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

htmlbook.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ kramed.setOptions({
177177
_.forEach(dom_tree, function (node, i) {
178178
// When the node is a text type, it has no children, just return it.
179179
if (node.type === "text") {
180-
output += S(node.data).unescapeHTML().s.replace(/([<>&])/gm, function(m){return S(m).escapeHTML().s});
181-
180+
output += S(node.data).unescapeHTML().s.replace(/([<>])/gm, function(m){return S(m).escapeHTML().s});
182181
} else if (node.type === "comment") {
183182
output += "<!-- "+node.data+"-->";
184183
// In XML mode, cdata isn't treated as a comment so render it here

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htmlbook",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Markdown to HTMLBook converter",
55
"main": "./htmlbook.js",
66
"bin": {

0 commit comments

Comments
 (0)