library/HTMLPurifier/AttrTransform/SafeObject.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
00007 {
00008     public $name = "SafeObject";
00009 
00010     function transform($attr, $config, $context) {
00011         if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
00012         return $attr;
00013     }
00014 }

Generated on Thu Jun 19 18:47:25 2008 for HTMLPurifier by  doxygen 1.5.3