Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html 5 escapes are returned in .text #48

Closed
TiPPeX2 opened this issue May 30, 2020 · 1 comment
Closed

html 5 escapes are returned in .text #48

TiPPeX2 opened this issue May 30, 2020 · 1 comment

Comments

@TiPPeX2
Copy link

TiPPeX2 commented May 30, 2020

from the interface I see:
/**
* Get unescaped text value of current node and its children.
* @return {string} text content
*/
get text(): string;

How do you get HTML5 encoding unescaped?
Since it didn't work on my test.
i.e:
The king&#39(;)s hat is on fire!

to
The king's hat is on fire!

taoqf added a commit that referenced this issue Apr 15, 2021
@taoqf
Copy link
Owner

taoqf commented Apr 15, 2021

It seems works fine. maybe you could try the latest version.

@taoqf taoqf closed this as completed Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants