CodeIgniter Forums
Storing HTML in Database from Tinymce - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Storing HTML in Database from Tinymce (/thread-18193.html)



Storing HTML in Database from Tinymce - El Forum - 04-28-2009

[eluser]richman[/eluser]
Hi

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?


Storing HTML in Database from Tinymce - El Forum - 04-28-2009

[eluser]bgreene[/eluser]
i use htmlspecialchars(tinytext) which converts things like <p> to &lt;p&gt;