Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Encoding Problem #1158

Open
impshum opened this issue Oct 5, 2016 · 3 comments
Open

Encoding Problem #1158

impshum opened this issue Oct 5, 2016 · 3 comments

Comments

@impshum
Copy link

impshum commented Oct 5, 2016

Summary

Quite simply... we're getting ' showing instead of just ' in post comments.
Encoding problem I guess.

Context details

@daviddarnes
Copy link
Member

daviddarnes commented Oct 5, 2016

Thanks for reporting this! However you need to give a little more context.

In this case ' is being encoded to ' in post comments, not in posts or pages by the looks of it

@impshum
Copy link
Author

impshum commented Oct 5, 2016

Updated.

@TheBrenny
Copy link
Member

Everything's being encoded on the way into the database. Are you trying to echo htmlspecialchars(comment_text());? because that'll show the output you've been seeing. I've just tested straight up echo comment_text(); (and applied a script tag to the inside) and I haven't hit a brick wall... Can someone double check this to confirm?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants