0

I'm writing a post about quote characters like curly quotes. I want to be able to print this string “ to demonstrate html entity of this character but when I open the html page it turns to the character itself.

I think this has to do with the default charset of html5 documents set to UTF-8 but I've seen pages like this one using the raw code.

Is there any way to do this in html?

1 Answer 1

4

When you output “ it's converted to HTML entity ". So to output it as-is you must double encode it: “

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.