Changing Your Sanitize Settings

The default Sanitize settings are meant to be a reasonable balance between the extremes of allowing your visitors to submit nothing but plaintext and letting them destroy your site. The elements that Sanitize allows to pass through are enough to provide basic structure and formatting, but are relatively innocuous and carry a fairly low potential for abuse.

All the same, you might find yourself in a situation where you want to allow other elements or attributes. Or you might decide you want to disallow one or more of the default elements.

Before you make any changes to the default settings, be sure you've thought ...

Get Sams Teach Yourself Movable Type in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.