html-parse-stringify2
html-parse-stringify2 copied to clipboard
Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.
when html has multi close tags, It will lead to errors; case like: it just a test ; error code source: L91: parent = level === -1 ? result :...
Hi Team, the html-parse-stringify2 is a transitive dependency and the latest version available is 2.0.1 and there is a **CVE-2021-23346** detected in the latest version. is this library activly maintained...
fixes: #26
https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307 has been raised for a ReDoS vulnerability, along with [CVE-2021-23346](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23346). The vulnerability is at https://github.com/rayd/html-parse-stringify2/blob/dbf026f9010a14167e5a9e8589464f660233e446/lib/parse.js#L2 There is a recent [fix](https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12) in the original repo this was forked from. Could...
I'd like to use the library as dependency of `react-i18next`, but I cannot find MIT license content and copyright term in the repository. MIT license requires 'The above copyright notice...
Thank you for this helpful package! Almost the same problem as #11 still remain: Parsing a plain text node + tags results in an list without plain text. Current behavior:...
Based on the specification this module collapses nodes only having whitespace. While this is correct there are cases you want to persist those. We built a simple syntax highlighting for...
Thank you very much for providing such a good tool. I have encountered some problems during use. The problem may appear in this code: ```javascript // if a node is...
close #15