node-html-parser
node-html-parser copied to clipboard
Feat: add option closeAllByClosing
If option closeAllByClosing is set to true, then all unclosed elements are closed at the end of their parent element.
This is done only after all usual heuristics for closing tags based on opening and closing tags have been exercised, to catch and close any remaining unclosed elements.
This ensures that where there is a parent element, all nested elements are closed by the close of the parent.
This will allow some cases of invalid HTML to be parsed and manipulated which otherwise might fail.