@trysound/sax
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1379,3 +1379,11 @@ ;(function (sax) { // wrapper for non-node envs | ||
if (c === ';') { | ||
parser[buffer] += parseEntity(parser) | ||
var parsedEntity = parseEntity(parser) | ||
// Custom entities can contain tags, so we potentially need to parse the result | ||
if (parser.state === S.TEXT_ENTITY && !sax.ENTITIES[parser.entity] && parsedEntity !== '&' + parser.entity + ';') { | ||
chunk = chunk.slice(0, i) + parsedEntity + chunk.slice(i) | ||
} else { | ||
parser[buffer] += parsedEntity | ||
} | ||
parser.entity = '' | ||
@@ -1382,0 +1390,0 @@ parser.state = returnState |
{ | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"name": "@trysound/sax", | ||
@@ -4,0 +4,0 @@ "description": "An evented streaming XML parser in JavaScript", |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
48683
0
1299