]>
Commit | Line | Data |
---|---|---|
1 | <?php\r | |
2 | \r | |
3 | class HTMLPurifier_AttrTransform_SafeEmbed extends HTMLPurifier_AttrTransform\r | |
4 | {\r | |
5 | /**\r | |
6 | * @type string\r | |
7 | */\r | |
8 | public $name = "SafeEmbed";\r | |
9 | \r | |
10 | /**\r | |
11 | * @param array $attr\r | |
12 | * @param HTMLPurifier_Config $config\r | |
13 | * @param HTMLPurifier_Context $context\r | |
14 | * @return array\r | |
15 | */\r | |
16 | public function transform($attr, $config, $context)\r | |
17 | {\r | |
18 | $attr['allowscriptaccess'] = 'never';\r | |
19 | $attr['allownetworking'] = 'internal';\r | |
20 | $attr['type'] = 'application/x-shockwave-flash';\r | |
21 | return $attr;\r | |
22 | }\r | |
23 | }\r | |
24 | \r | |
25 | // vim: et sw=4 sts=4\r |