December 2009
2 posts
Clean inputted html with CakePHP BritaBehaviour
I’ve been using TinyMCE as a text editor in my CMSs, and whilst it’s good, it can lead to the odd empty tag/para ending up in the html, font tags and all manner of other crap (especially if M$ Word has been involved at all), so I created a cakephp behaviour that uses the HTMLPurifier class to make all inputted html valid.
First, you need to download the most recent version of the...
Be careful what you chew →