Generally speaking, htmlparser is used more frequently for parsing. It is already available in the node library and can be installed by npm install -g htmlparser2.
To implement security scanning on nodejs during this period, you need to parse html, css, and js. css mainly limits some absolute positioning, floating layers, and urls to prevent phishing or attacks. So I wrote a css parser.
I feel that these basic libraries should be made public, but I don’t know how many people have this need.