Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/detailyang/lua-resty-htmlentities
Backport the html entities to luajit with the ffi binding as the entities to UTF-8 decoder.
https://github.com/detailyang/lua-resty-htmlentities
htmlentities luajit
Last synced: 3 months ago
JSON representation
Backport the html entities to luajit with the ffi binding as the entities to UTF-8 decoder.
- Host: GitHub
- URL: https://github.com/detailyang/lua-resty-htmlentities
- Owner: detailyang
- License: mit
- Created: 2017-01-05T10:01:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T01:53:45.000Z (over 7 years ago)
- Last Synced: 2024-02-15T03:34:25.624Z (9 months ago)
- Topics: htmlentities, luajit
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-resty - lua-resty-htmlentities - 8 decoder (Libraries)
README
[entities]: https://bitbucket.org/cggaertner/cstuff
# lua-resty-htmlentities
Backport the [entities] to luajit with the ffi binding as the entities to UTF-8 decoder.Table of Contents
-----------------
* [Status](#status)
* [Install](#install)
* [Usage](#usage)
* [Contributing](#contributing)
* [Author](#author)
* [License](#license)Status
====
[![Build Status](https://travis-ci.org/detailyang/lua-resty-htmlentities.svg?branch=master)](https://travis-ci.org/detailyang/lua-resty-htmlentities)Production Ready
Install
=======```bash
make && make install
```
or```bash
make && make install DESTDIR=/path/
```Usage
====
Make sure `htmlentities.lua` and `libhtmlentities.so` is in the `package.cpath` and `package.path````bash
local htmlentities_decoder = htmlentities.new()
local htmlentities_decode = htmlentities_decoder.decodehtmlentities_decode("&")
```Contributing
------------To contribute to lua-resty-htmlentities, clone this repo locally and commit your code on a separate branch.
PS: PR Welcome :rocket: :rocket: :rocket: :rocket:
Author
------> GitHub [@detailyang](https://github.com/detailyang)
License
-------
lua-resty-htmlentities is licensed under the [MIT] license.[MIT]: https://github.com/detailyang/ybw/blob/master/licenses/MIT