Comparing version 0.2.5 to 0.2.6
@@ -41,3 +41,3 @@ // doT.js | ||
var encodeHTMLRules = { "&": "&", "<": "<", ">": ">", '"': '"', "'": ''', "/": '/' }, | ||
matchHTML = /&(?!\\w+;)|<|>|"|'|\//g; | ||
matchHTML = /&(?!#?\w+;)|<|>|"|'|\//g; | ||
return function(code) { | ||
@@ -44,0 +44,0 @@ return code ? code.toString().replace(matchHTML, function(m) {return encodeHTMLRules[m] || m;}) : code; |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "doT", | ||
@@ -13,0 +13,0 @@ "homepage": "http://github.com/olado/doT", |
7825