35 lines
790 B
Markdown
35 lines
790 B
Markdown
|
# glentities
|
||
|
|
||
|
[![Package Version](https://img.shields.io/hexpm/v/glentities)](https://hex.pm/packages/glentities)
|
||
|
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glentities/)
|
||
|
|
||
|
An HTML entity encoder/decoder for Gleam.
|
||
|
|
||
|
## Quick start
|
||
|
|
||
|
```gleam
|
||
|
import glentities
|
||
|
|
||
|
glentities.encode("</html>", glentities.Named) // "</html>"
|
||
|
glentities.encode("</html>", glentities.Hex) // "</html>"
|
||
|
|
||
|
glentities.decode("</html>") // "</html>"
|
||
|
glentities.decode("</html>") // "</html>"
|
||
|
```
|
||
|
|
||
|
## Development
|
||
|
|
||
|
```sh
|
||
|
gleam test # Run the tests
|
||
|
```
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
This package can be added to your Gleam project:
|
||
|
|
||
|
```sh
|
||
|
gleam add glentities
|
||
|
```
|
||
|
|
||
|
and its documentation can be found at <https://hexdocs.pm/glentities>.
|