Björn f184cd7e2a | 4 years ago | |
---|---|---|
.. | ||
lib | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
package.json | 4 years ago |
En- & decoder for XML/HTML entities.
entities
npm i entities
entities
const entities = require("entities");
//encoding
entities.escape("&"); // "&"
entities.encodeXML("&"); // "&"
entities.encodeHTML("&"); // "&"
//decoding
entities.decodeXML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
entities.decodeHTML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
License: BSD-2-Clause
Get supported entities with the Tidelift Subscription
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.