Comparing version 0.1.3 to 0.1.4
@@ -47,3 +47,3 @@ /** | ||
// Allow users to see what version of ltl they're using. | ||
version: '0.1.3', | ||
version: '0.1.4', | ||
@@ -651,6 +651,3 @@ // Store all of the templates that have been compiled. | ||
if (escapeVar) { | ||
output = "function " + escapeVar + "(t){" + | ||
"var r={'<':'<','&':'&','>':'>'};" + | ||
"return (''+t).replace(/[<&>]/g,function(m){return r[m]})};" + | ||
output; | ||
output = "function " + escapeVar + "(t){return (''+t).replace(/</g,'<')};" + output; | ||
} | ||
@@ -657,0 +654,0 @@ output = 'eval.f=function(' + options.contextVar + (hasGets ? ',' + options.partsVar : '') + '){' + output + '}'; |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "ltl", | ||
@@ -17,0 +17,0 @@ "homepage": "http://lighter.io/ltl", |
30696
647