convert all special characters in a string to their corresponding HTML and CSS entities
npm install entity-convert.html(string) and .css(string). In a non-AMD and non-CommonJS environment .entityconvert will be attached to the global object.
javascript
require(['entityconvert'], function(entityconvert){
var converted = entityconvert.html('We äll löve Ümläutß!');
// => We äll löve Ümläutß!
});
`
CommonJS usage:
`javascript
var entityconvert = require('entity-convert');
var converted = entityconvert.css('We äll löve Ümläutß!');
// => We \00e4ll l\00f6ve \00dcml\00e4ut\00df!
`
Script tag usage:
`html
`
Available via npm:
`sh
npm install entity-convert --save
``