rayd / html-parse-stringify2

Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.
21 stars 11 forks source link

Ignore HTML comments when parsing an HTML string. #5

Closed rayd closed 8 years ago

rayd commented 8 years ago

e.g. don't treat any of this as a node:

<!-- Here's a comment and some nodes inside:
  <div>I'm not here!</div>
-->