prc b6c02717e6 Upload complete no-internet building environment. | 1 gadu atpakaļ | |
---|---|---|
.. | ||
lib | 1 gadu atpakaļ | |
maps | 1 gadu atpakaļ | |
test | 1 gadu atpakaļ | |
.travis.yml | 1 gadu atpakaļ | |
LICENSE | 1 gadu atpakaļ | |
index.js | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ | |
readme.md | 1 gadu atpakaļ |
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