kubernetes-handbook/entities
rootsongjc cd11aa375a deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
..
lib deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
maps deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
test deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
.travis.yml deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
LICENSE deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
index.js deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
package.json deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
readme.md deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00: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-2-Clause