suyiScreen/node_modules/entities
lixiaobang 18ece3f395 代码提交 2023-02-06 08:46:29 +08:00
..
lib 代码提交 2023-02-06 08:46:29 +08:00
LICENSE 代码提交 2023-02-06 08:46:29 +08:00
README.md 代码提交 2023-02-06 08:46:29 +08:00
package.json 代码提交 2023-02-06 08:46:29 +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

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

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.