vlad 6f123ff03e 18.07 | 6 lat temu | |
---|---|---|
.. | ||
lib | 6 lat temu | |
maps | 6 lat temu | |
test | 6 lat temu | |
.travis.yml | 6 lat temu | |
LICENSE | 6 lat temu | |
index.js | 6 lat temu | |
package.json | 6 lat temu | |
readme.md | 6 lat temu |
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