mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-11 05:11:40 +00:00
update
This commit is contained in:
27
node_modules/entities/readme.md
generated
vendored
Normal file
27
node_modules/entities/readme.md
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
# entities [](https://npmjs.org/package/entities) [](https://npmjs.org/package/entities) [](http://travis-ci.org/fb55/entities) [](https://coveralls.io/r/fb55/entities)
|
||||
|
||||
En- & decoder for XML/HTML entities.
|
||||
|
||||
## How to…
|
||||
|
||||
### …install `entities`
|
||||
|
||||
npm i entities
|
||||
|
||||
### …use `entities`
|
||||
|
||||
```javascript
|
||||
var entities = require("entities");
|
||||
//encoding
|
||||
entities.encodeXML("&"); // "&"
|
||||
entities.encodeHTML("&"); // "&"
|
||||
//decoding
|
||||
entities.decodeXML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
|
||||
entities.decodeHTML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
|
||||
```
|
||||
|
||||
<!-- TODO extend API -->
|
||||
|
||||
---
|
||||
|
||||
License: BSD-2-Clause
|
Reference in New Issue
Block a user