4 * Writes default type for all objects. Currently only supports flash.
6 class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
11 public $name = "SafeObject";
15 * @param HTMLPurifier_Config $config
16 * @param HTMLPurifier_Context $context
19 public function transform($attr, $config, $context)
21 if (!isset($attr['type'])) {
22 $attr['type'] = 'application/x-shockwave-flash';