CodeIgniter Forums
Closing Opened Tags - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Closing Opened Tags (/thread-5889.html)

Closing Opened Tags - El Forum - 02-07-2008

I'm wrapping up the development of a custom CMS for a client. I'm using FCKeditor on some of the form fields where they want more control over the appearance of the text. I'm only using a few of the toolbar options (like bold, italic, font color, paste from word, and add link) but I'm concerned about the fact that FCKeditor doesn't catch unclosed code blocks (like if they forget to add the "</p>" or if they copied and pasted text from another site that's less-than-perfect.

What might be my best option for parsing the content and closing any opened tags before adding it to the database?

I appreciate any suggestions. Thanks.