medium-to-markdown/node_modules/entities
David Tesler 9bd1ed72ce first commit 2017-04-28 17:26:30 -07:00
..
lib first commit 2017-04-28 17:26:30 -07:00
maps first commit 2017-04-28 17:26:30 -07:00
test first commit 2017-04-28 17:26:30 -07:00
.travis.yml first commit 2017-04-28 17:26:30 -07:00
LICENSE first commit 2017-04-28 17:26:30 -07:00
index.js first commit 2017-04-28 17:26:30 -07:00
package.json first commit 2017-04-28 17:26:30 -07:00
readme.md first commit 2017-04-28 17:26:30 -07:00

readme.md

#entities NPM version Downloads Build Status Coverage

En- & decoder for XML/HTML entities.

##How to…

###…install entities

npm i entities

###…use entities

var entities = require("entities");
//encoding
entities.encodeXML("&");  // "&"
entities.encodeHTML("&"); // "&"
//decoding
entities.decodeXML("asdf & ÿ ü '");  // "asdf & ÿ ü '"
entities.decodeHTML("asdf & ÿ ü '"); // "asdf & ÿ ü '"

License: BSD-like