Skip to content

Commit

Permalink
Fixed decoding of encoded HTML entities in the HTML parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Feb 19, 2025
1 parent dad8ee1 commit c233949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- fixed `Message-ID` generator for email messages
- __critital__ fixed cloning buffers in the `FlowStream`
- added `FILESTORAGE().clone(id, newid, [callback])` method
- fixed decoding of encoded HTML entities in the HTML parser

========================
0.0.98
Expand Down
2 changes: 1 addition & 1 deletion htmlparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ HTMLElement.prototype.prepend = function(str) {
};

HTMLElement.prototype.text = function() {
return this.html().removeTags();
return this.html().removeTags().decode();
};

HTMLElement.prototype.toString = HTMLElement.prototype.html = function(formatted) {
Expand Down

0 comments on commit c233949

Please sign in to comment.