html-entities
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -33,3 +33,7 @@ // Generated by CoffeeScript 1.4.0 | ||
if (entity.charAt(0) === "#") { | ||
code = parseInt(entity.substr(1)); | ||
if (entity.charAt(1).toLowerCase() === 'x') { | ||
code = parseInt(entity.substr(2), 16); | ||
} else { | ||
code = parseInt(entity.substr(1)); | ||
} | ||
} else { | ||
@@ -36,0 +40,0 @@ code = FullHtmlEntities.alphaIndex[entity]; |
{ | ||
"name": "html-entities", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Faster HTML entities encode/decode library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,8 +32,8 @@ node-html-entities | ||
```javascript | ||
var Entities = require('html-entities').FullHtmlEntities; | ||
var Entities = require('html-entities').FullHtmlEntities; | ||
entities = new Entities(); | ||
console.log(entities.encode('<>"&©®')); // <>"&©® | ||
console.log(entities.decode('<>"&©®')); // <>"&©® | ||
entities = new Entities(); | ||
console.log(entities.encode('<>"&©®')); // <>"&©® | ||
console.log(entities.decode('<>"&©®')); // <>"&©® | ||
``` |
Sorry, the diff of this file is not supported yet
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
7315
82
6