CodeIgniter Forums

Full Version: Storing HTML in Database from Tinymce
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I know this has been asked a few times but what is the best way to store the HTML output by a TinyMCE instance in a database table.

What steps should you take before inserting this into the DB?

El Forum

i use htmlspecialchars(tinytext) which converts things like <p> to &lt;p&gt;