You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not the maintainer, but decodeEntities controls the opposite - if > in the input should become > in the output.
I think you want xmlMode: true instead.
That's almost the answer: The reason why decodeEntities doesn't work is that it is an option for htmlparser2, which isn't the default parser. Have a look at https://github.com/cheeriojs/cheerio#using-htmlparser2 for more details. The easiest way around this is probably by using the slim export.
Leaving this open to track the deeper issue.
fb55
changed the title
DecodeEntities not keeping '>' symbol in the html.
Impact of options is hard to understand
Sep 13, 2022
I am passing
We want it to return
<div> > Hello world </div>
, but it's returning<div> > Hello world </div>
instead.The text was updated successfully, but these errors were encountered: