kanji-sheets/grabKanji/node_modules/entities
Oystein Kristoffer Tveit fa7efdb067 Initial commit 2020-05-20 10:19:01 +02:00
..
lib Initial commit 2020-05-20 10:19:01 +02:00
maps Initial commit 2020-05-20 10:19:01 +02:00
test Initial commit 2020-05-20 10:19:01 +02:00
.travis.yml Initial commit 2020-05-20 10:19:01 +02:00
LICENSE Initial commit 2020-05-20 10:19:01 +02:00
index.js Initial commit 2020-05-20 10:19:01 +02:00
package.json Initial commit 2020-05-20 10:19:01 +02:00
readme.md Initial commit 2020-05-20 10:19:01 +02: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