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

[question] loop true all elements and text

Open Commandcracker opened this issue 1 year ago • 0 comments

I have a recursive function that goes through all elements from top to bottom, and I want to handle booth "raw" text and tags.

I seam to only be able to get one thing. "Raw" text by using "textonly" on the html tag, but it returns one long string, so I'm not able to handle tags differently from tags. (I noticed, that "textonly" is not in the README should it be added ?) Tags by using the selector "*", but it will ignore all text.

Commandcracker avatar May 12 '23 16:05 Commandcracker