Snow 1d0b9c5323 增加了node环境 | hai 1 mes | |
---|---|---|
.. | ||
lib | hai 1 mes | |
maps | hai 1 mes | |
test | hai 1 mes | |
.travis.yml | hai 1 mes | |
LICENSE | hai 1 mes | |
index.js | hai 1 mes | |
package.json | hai 1 mes | |
readme.md | hai 1 mes |
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