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

Workshop

Quiz

1:What would the Sanitize spec to allow images be? (Remember to account for attributes that you don't want stripped.)
2:What is the directive you'd use in the mt.cfg file to set the Sanitize spec for all weblogs in your Movable Type install?
3:True or False: Setting the sanitize attribute for a template tag to zero means, “Don't allow any tags to make it through the filter.”

Answers

A1: The minimum in order to produce valid HTML would be img/ src alt, but you'd probably also want to include at least the height and width attributes, too: img/ src alt height width. Don't forget the slash because img is an empty element.
A2: The directive is GlobalSanitizeSpec.
A3: False. Setting sanitize to zero tells Movable Type not to run the value of that tag through Sanitize at all.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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