kostya / lexbor

Fast HTML5 Parser with CSS selectors. This is successor of myhtml and expected to be faster and use less memory.
MIT License
95 stars 14 forks source link

Moving from myHTML a few questions #34

Closed bararchy closed 1 year ago

bararchy commented 1 year ago

Hi @kostya thanks for the great work on this AND myHTML!

I have a few questions while we do the migration. does Lexbor has options like:

tree_options: Myhtml::Lib::MyhtmlTreeParseFlags::MyHTML_TREE_PARSE_FLAGS_SKIP_WHITESPACE_TOKEN

?

kostya commented 1 year ago

In parser no such option. You should do it manually. Only tokenizer https://github.com/kostya/lexbor/blob/master/src/lexbor/tokenizer.cr#L90 have similar option.