taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

TextNode text property is not decoded #134

Closed nonara closed 3 years ago

nonara commented 3 years ago

Current node convention is for rawText to be the raw, html-encoded text. The text property, however, should be html-decoded.

HtmlNode#text returns decoded text, however TextNode#text simply returns the same as rawText.

PR Incoming.