1: <?php
2:
3: /**
4: * Writes default type for all objects. Currently only supports flash.
5: */
6: class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
7: {
8: public $name = "SafeObject";
9:
10: function transform($attr, $config, $context) {
11: if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
12: return $attr;
13: }
14: }
15:
16: // vim: et sw=4 sts=4
17: