Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Hi Pablo, This is being inserted with a plugin: ckeditor so I don't know how to change the way it is entered, but it is entered as code. The problem I am having is that I want it to echo as formatted text, not code. Commented Jan 8, 2016 at 18:45
  • @brett: CKEditor escapes HTML by default. Commented Jan 8, 2016 at 18:53
  • it looks like the echoing is fine when I check the echo, but my html5/javascript application front end is re-writing it as code again. Not sure how to fix this yet. If you have any ideas, that would be great. Commented Jan 8, 2016 at 19:04
  • Can you showme what is the data stored in your database? is: CO<sub>2</sub> or something like "CO&lt;sub&gt;2&lt;/sub&gt;" ? Commented Jan 8, 2016 at 19:20
  • If you have the seccond one you can just use: html_entity_decode() Commented Jan 8, 2016 at 19:21