https://www.npmjs.com/package/node-html-parser seems like a good alternative if you don't want to use an offscreen doc, which seems a bit overkill imo.