4 * A "safe" embed module. See SafeObject. This is a proprietary element.
6 class HTMLPurifier_HTMLModule_SafeEmbed extends HTMLPurifier_HTMLModule
9 public $name = 'SafeEmbed';
11 public function setup($config) {
13 $max = $config->get('HTML.MaxImgLength');
14 $embed = $this->addElement(
15 'embed', 'Inline', 'Empty', 'Common',
17 'src*' => 'URI#embedded',
18 'type' => 'Enum#application/x-shockwave-flash',
19 'width' => 'Pixels#' . $max,
20 'height' => 'Pixels#' . $max,
21 'allowscriptaccess' => 'Enum#never',
22 'allownetworking' => 'Enum#internal',
23 'flashvars' => 'Text',
24 'wmode' => 'Enum#window',
28 $embed->attr_transform_post[] = new HTMLPurifier_AttrTransform_SafeEmbed();