Skip to content

Use .text() instead of .html() so that entities aren't escaped by cheerio #19

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

Closed
wants to merge 1 commit into from

Conversation

ajpiano
Copy link
Member

@ajpiano ajpiano commented Oct 17, 2012

The incorrect syntax highlight was actually because calling .html() with cheerio was giving us back some of the html converted to entities. Calling .text() gives us input that highlights property. Hat tip to @mikesherov

@jzaefferer
Copy link
Member

This is still valid, independent of the highlighter switch, right?

@ajpiano
Copy link
Member Author

ajpiano commented Oct 18, 2012

Yep - in experimenting with the new highlighter, I realised the bug was happening with any highlighter and so this was clearly a separate bug.

@jzaefferer
Copy link
Member

I need to get my local setup fixed to test this and other PRs.

@jzaefferer
Copy link
Member

Got my setup fixed; got this tested. Landed in da0d1a5

@jzaefferer jzaefferer closed this Oct 22, 2012
@jzaefferer
Copy link
Member

Released 0.5.6

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

Successfully merging this pull request may close these issues.

2 participants