Comparing version 1.1.1 to 1.1.2
@@ -5,3 +5,3 @@ { | ||
"description": "Jade template runtime", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "template" |
@@ -631,5 +631,3 @@ 'use strict'; | ||
if (escaped && !(key.indexOf('data') === 0 && typeof val !== 'string')) { | ||
var temp = runtime.escape(val); | ||
if (temp !== '' + val) | ||
val = temp; | ||
val = runtime.escape(val); | ||
} | ||
@@ -636,0 +634,0 @@ buf.push(JSON.stringify(key) + ': ' + JSON.stringify(val)); |
@@ -154,3 +154,3 @@ 'use strict'; | ||
exports.escape = function escape(html){ | ||
return String(html) | ||
var result = String(html) | ||
.replace(/&/g, '&') | ||
@@ -160,2 +160,4 @@ .replace(/</g, '<') | ||
.replace(/"/g, '"'); | ||
if (result === '' + html) return html; | ||
else return result; | ||
}; | ||
@@ -162,0 +164,0 @@ |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
942328