diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/html.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/lib/html.js b/js/lib/html.js index 12a8db9..928964e 100644 --- a/js/lib/html.js +++ b/js/lib/html.js @@ -19,6 +19,8 @@ var tag = function(name, attrs, selfclosing) { return result; }; +var reHtmlTag = /\<[^>]*\>/; + var renderNodes = function(block, options) { var attrs; @@ -32,7 +34,7 @@ var renderNodes = function(block, options) { var grandparent; var out = function(s) { if (disableTags > 0) { - buffer += s.replace(/\<[^>]*\>/g, ''); + buffer += s.replace(reHtmlTag, ''); } else { buffer += s; } |