Return unexpected result when HTML innerText begin with ``.
October10 opened this issue · comments
Oct10 commented
To Reproduce
Step by step instructions to reproduce the behavior:
- Provide the library the following html
<span></span>
- The library returns
Expected behavior
I expected the library returns (

) or (&#xe60b;
)
Describe the bug
Reduce the number of characters, the similar problem will appear when innerText is

.
Details
Version of Node.js:
v15.3.0
Server Operating System:
macOS Catalina 10.15.5
Version of Browser:
Google Chrome: 90.0.4430.93 (It seems that there is no such problem in version 89. )
Oct10 commented
Words beginning with  are recognized as hexadecimal HTML Entities by htmlparser2, the decodeEntities option is helpful.