Skip to content

Commit c640d3b

Browse files
committed
Add back amp escape
1 parent a96c48f commit c640d3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

htmlbook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +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});
180+
output += S(node.data).unescapeHTML().s.replace(/([<>&])/gm, function(m){return S(m).escapeHTML().s});
181181
} else if (node.type === "comment") {
182182
output += "<!-- "+node.data+"-->";
183183
// 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.9",
3+
"version": "0.1.10",
44
"description": "Markdown to HTMLBook converter",
55
"main": "./htmlbook.js",
66
"bin": {

0 commit comments

Comments
 (0)