Hi
Can I convert a webpage (returned as a string from http.request) to a Lua table? M isea is to convert DOM in the same way as json library parse json to table.
Now I parse the webpage using string manipulation functions like match, gsub etc. I don't trust this code so much so I would like to improve my code by a more robust solution. Is there any suitable library in LM?
Thank you
And subquestion: I need to convert the webpage into something LM understands. Which codepage Lua or LM uses internally? Is it UTF8? Is there iconv available in LM?
Can I convert a webpage (returned as a string from http.request) to a Lua table? M isea is to convert DOM in the same way as json library parse json to table.
Now I parse the webpage using string manipulation functions like match, gsub etc. I don't trust this code so much so I would like to improve my code by a more robust solution. Is there any suitable library in LM?
Thank you
And subquestion: I need to convert the webpage into something LM understands. Which codepage Lua or LM uses internally? Is it UTF8? Is there iconv available in LM?
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259