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 ...

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.