v4.5.0
New Features
entities
now features an EntityDecoder
class that can be used to decode entities across multiple chunks. This is needed to parse streams, and will be the foundation for entity decoding in htmlparser2
and parse5
.
For users of this library, the most welcome addition will be a new attribute decoding mode, which will ignore some entities that were previously parsed (eg. `foo=bar&=boo' will be left unchanged).
entities
' decode
functions all use the new decoder under the hood. There is a new decodeHTMLAttribute
function for attribute parsing, and some rare edge-cases where entities diverged from the HTML spec have been eliminated.
Relevant PRs
- feat(decode): Add
EntityDecoder
class by @fb55 in #1136 - fix(decode): Handle chunks for numeric entities by @fb55 in #1146
Small Changes
- Typo fixes by @styfle #1032, @Jiralite #1060, and @sandeepkambham08 #1129
- Harden GitHub Actions by @step-security-bot in #928
Full Changelog: v4.4.0...v4.5.0