html-entities
Advanced tools
Comparing version 1.0.2 to 1.0.3
module.exports = { | ||
BasicHtmlEntities: require('./lib/basic-html-entities.js').BasicHtmlEntities, | ||
FullHtmlEntities: require('./lib/full-html-entities.js').FullHtmlEntities | ||
XmlEntities: require('./lib/xml-entities.js').XmlEntities, | ||
Html4Entities: require('./lib/html4-entities.js').Html4Entities, | ||
Html5Entities: require('./lib/html5-entities.js').Html5Entities, | ||
AllHtmlEntities: require('./lib/html5-entities.js').Html5Entities | ||
}; |
{ | ||
"name": "html-entities", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Faster HTML entities encode/decode library.", | ||
@@ -19,2 +19,5 @@ "keywords": [ | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"colors": "*" | ||
}, | ||
"repository": { | ||
@@ -21,0 +24,0 @@ "type": "git", |
@@ -17,6 +17,6 @@ node-html-entities | ||
HTML validity and XSS attack prevention you can achieve from BasicHtmlEntities class. | ||
HTML validity and XSS attack prevention you can achieve from XmlEntities class. | ||
```javascript | ||
var Entities = require('html-entities').BasicHtmlEntities; | ||
var Entities = require('html-entities').XmlEntities; | ||
@@ -26,10 +26,10 @@ entities = new Entities(); | ||
console.log(entities.encode('<>"&©®')); // <>"&©® | ||
console.log(entities.decode('<>"&©®')); // <>"©® | ||
console.log(entities.decode('<>"&©®')); // <>"& | ||
``` | ||
####Full HTML entities encoding/decoding#### | ||
####All HTML entities encoding/decoding#### | ||
```javascript | ||
var Entities = require('html-entities').FullHtmlEntities; | ||
var Entities = require('html-entities').AllHtmlEntities; | ||
@@ -41,1 +41,11 @@ entities = new Entities(); | ||
``` | ||
####Available classes#### | ||
```javascript | ||
var XmlEntities = require('html-entities').XmlEntities, // <>"'& + &#...; decoding | ||
Html4Entities = require('html-entities').Html4Entities, // HTML4 entities. | ||
Html5Entities = require('html-entities').Html4Entities, // HTML5 entities. | ||
AllHtmlEntities = require('html-entities').AllHtmlEntities, // Synonym for HTML5 entities. | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55667
7
357
49
1
1