kubernetes-handbook/node_modules/entities
Jimmy Song c6db5e8fef
add node modules
2021-04-13 00:24:28 +08:00
..
lib add node modules 2021-04-13 00:24:28 +08:00
maps add node modules 2021-04-13 00:24:28 +08:00
test add node modules 2021-04-13 00:24:28 +08:00
.travis.yml add node modules 2021-04-13 00:24:28 +08:00
LICENSE add node modules 2021-04-13 00:24:28 +08:00
index.js add node modules 2021-04-13 00:24:28 +08:00
package.json add node modules 2021-04-13 00:24:28 +08:00
readme.md add node modules 2021-04-13 00:24:28 +08: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