• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Understanding Sanitize

The main thing Sanitize does is to remove from a piece of content any HTML or XHTML markup that has not been explicitly allowed. Sanitize acts as a bouncer with a guest list that says which elements and element attributes are allowed in; if the content being sanitized contains an element or attribute that's not on the list, Sanitize strips out the unlisted element or attribute.

This filtering doesn't have any effect on the data that is actually stored in Movable Type's database, only on the content that is actually published to your site when using a template tag that inserts that data. For example, let's say the database contained a value that looked something like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint