when parse "character entity", the textNode's data was wrong

This issue has been tracked since 2021-12-24.
const ast = parseDocument('<span>&#178;</span>');

ast.children[0].data !== '&#178;'
fb55 wrote this answer on 2021-12-24

Try setting decodeEntities: false, if you don't want entities to be decoded.

zhuxindaba wrote this answer on 2021-12-24

thx

More Details About Repo
Owner Name fb55
Repo Name htmlparser2
Full Name fb55/htmlparser2
Language TypeScript
Created Date 2011-08-27
Updated Date 2023-03-19
Star Count 3793
Watcher Count 50
Fork Count 370
Issue Count 4

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date