entities-gsm

Encode & decode XML/HTML entities with ease

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
entities-gsm
1.0.07 years ago7 years agoMinified + gzip package size for entities-gsm in KB

Readme

entities NPM version Downloads Build Status Coverage
En- & decoder for XML/HTML entities. Uses some non-standard character mapping to better support sending text messages in the GSM format.

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-like