27.02.2017, 07:30
LuaExpat library for parsing XML is built-in but it probably won't work because most web pages are invalid XML documents.
There are some pure Lua parsers like https://github.com/thenumbernine/htmlparser-lua, but you will have to adapt the code a little bit for it to run in LM.
Web interface uses UTF-8. All Lua string functions work only on byte level so they mostly don't care about encoding. iconv is not provided by default but can be provided as a separate package later.
There are some pure Lua parsers like https://github.com/thenumbernine/htmlparser-lua, but you will have to adapt the code a little bit for it to run in LM.
Web interface uses UTF-8. All Lua string functions work only on byte level so they mostly don't care about encoding. iconv is not provided by default but can be provided as a separate package later.