Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
lib | 2 years ago | |
maps | 2 years ago | |
test | 2 years ago | |
.travis.yml | 2 years ago | |
LICENSE | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
En- & decoder for XML/HTML entities.
entities
npm i entities
entities
var entities = require("entities");
//encoding
entities.encodeXML("&"); // "&"
entities.encodeHTML("&"); // "&"
//decoding
entities.decodeXML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
entities.decodeHTML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
License: BSD-2-Clause