lua-htmlparser icon indicating copy to clipboard operation
lua-htmlparser copied to clipboard

Main loop reached on valid html file?

Open nunu6689 opened this issue 1 year ago • 2 comments

Good morning sirs. Using luajit and vanilla lua. Installed from luarocks. Parsing with gumbo is fine. But it's ded and not portable on some system. Tried with various html fixer first but with no success.

Can you look at it sirs. Thank you sirs.

test.zip

nunu6689 avatar Jan 28 '24 00:01 nunu6689

you can try just increase the main loop limit size (default is 1000)

local root = htmlparser.parse(htmlstring, 10000)

guilhermeg2k avatar Dec 31 '24 05:12 guilhermeg2k

you can try just increase the main loop limit size (default is 1000)

local root = htmlparser.parse(htmlstring, 10000)

No it's not about the loop limit. Even change to 1mil it's still fail to parse.

nunu6689 avatar Jan 03 '25 18:01 nunu6689