Module for lua, decoding html entities :)
Module for decoding of text using entities html
or encode of text to entities html :V
Written for Lua5.3 but working with lua5.2 and 5.1
Use the terminal(luarocks) $ luarocks install html-entities
Module function:
Function | Info |
---|---|
htmlEntities.decode(input) | Decode html entities to text |
htmlEntities.encode(input) | Encode text to html entities :v |
htmlEntities.ASCII_HEX(input) | Decode for ASCII HEX |
htmlEntities.ASCII_DEC(input) | Decode for ASCII DEC |
Module option:
String | Default | Info |
---|---|---|
error_msg_htmlEntities | false | View log of erros |
debug_htmlEntities | false | Print output |
ASCII_htmlEntities | true | Decode for entities ASCII |
utf8_htmlEntities | true | Force utf8 for <= lua5.2 |
register_global_module_htmlEntities | false | Register module global |
global_module_name_htmlEntities | "htmlEntities" | Name (global module) |
Module file
Suggestions and Support New Issue
For stable versions to access Releases
GNU GENERAL PUBLIC LICENSE V3 (GPL)
Copyright (c) 2016 Tiago Danin