Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
encode & decode XML/HTML entities with ease
JavaScript
branch: master

fix badges

were still pointing to the old names
latest commit 09ab1a5802
@fb55 authored

readme.md

entities NPM version Downloads Build Status Coverage

En- & decoder for XML/HTML entities.

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

Something went wrong with that request. Please try again.