Mike November

Phonetic alphabet for my initials, k?

Viewing entries tagged with 'tidy'

Clean content

Posted by Marcus Nyeholt on 22 September 2011 | 0 Comments

Tags: ,

I recently slapped together a 'Clean Content' module for SS pages that allows you to have HTML Tidy and/or Purify run on content. This can be done optionally on save, or from a template call to $Clean(ContentFieldName) which will run the appropriate cleaning option. Note that it'll need the tidy plugin enabled for that - it ships with the HTML purify extension.

0 comments | Read the full post