HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/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 }
00015 
00016 // vim: et sw=4 sts=4