Is there any way to prevent FCKeditor to be used to break html code? I mean, if someones just writes "</td></tr></table></td></tr></table>....", when I print that in my website, it breaks the layout.
[*]Should I deactivate the html source code? How?
[*]Should I check for any unclosed tags before inserting it to the database? How?
Any other ideas?
Thanks,
Fernando.
[*]Should I deactivate the html source code? How?
[*]Should I check for any unclosed tags before inserting it to the database? How?
Any other ideas?
Thanks,
Fernando.
Re: Prevent broken html
I'm sorry. I should read the help files first (didn't find them the first time). If anyone had the same concern, just edit the toolbar (or create a custom one) to deactivate the "sample" button and add it to the config file.
1.- Follow these instructions for a custom config file:
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_File#Method_2
2.- and then go to following for a custom toolbar:
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Toolbar#Custom_ToolBarSets
I hope this helps.