Comparing version 0.12.7 to 0.12.8
@@ -137,6 +137,16 @@ /* | ||
var renderText = function (elem) { | ||
var parent = elem.parent; | ||
var parent = elem.parent, | ||
doNotEscape = { | ||
'style': true, | ||
'script': true, | ||
'xmp': true, | ||
'iframe': true, | ||
'noembed': true, | ||
'noframes': true, | ||
'plaintext': true, | ||
'noscript': true | ||
}; | ||
//NOTE: following elements doesn't require HTML escaping. | ||
if (parent && (parent.name === 'script' || parent.name === 'style' || parent.name === 'iframe' || parent.name === 'xmp')) | ||
if (parent && doNotEscape[parent.name]) | ||
return elem.data; | ||
@@ -143,0 +153,0 @@ |
@@ -13,3 +13,3 @@ { | ||
"keywords": ["htmlparser", "jquery", "selector", "scraper"], | ||
"version": "0.12.7", | ||
"version": "0.12.8", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
2484
156181