Split the Safe filter into a version for HTML enabled input and a plain text one.
The plain text input filter just htmlentities everything and the HTML one uses HTMLPurifier to fix the input.
Merge pull request #1 from jrjohnson/split-safe-filter

Split the Safe filter