lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Nov 18, 2015 at 9:55 PM, Nereus <> wrote:

I'd like to write a script to extract parts of an HTML page. Since Lua is so
small, it looks like a good match to run on an appliance.

A bit of research shows that it's not a good idea to use a regex engine, and
people recommend using an XML parser.

Is there a good tool I could use in Lua to parse HTML?

Thank you.

View this message in context:
Sent from the Lua-l mailing list archive at

An option is to run it through htmltidy to convert to XHTML. If conversion succeeds then you can use an XML parser.