4 * A "safe" embed module. See SafeObject. This is a proprietary element.
6 class HTMLPurifier_HTMLModule_SafeEmbed extends HTMLPurifier_HTMLModule
11 public $name = 'SafeEmbed';
14 * @param HTMLPurifier_Config $config
16 public function setup($config)
18 $max = $config->get('HTML.MaxImgLength');
19 $embed = $this->addElement(
25 'src*' => 'URI#embedded',
26 'type' => 'Enum#application/x-shockwave-flash',
27 'width' => 'Pixels#' . $max,
28 'height' => 'Pixels#' . $max,
29 'allowscriptaccess' => 'Enum#never',
30 'allownetworking' => 'Enum#internal',
31 'flashvars' => 'Text',
32 'wmode' => 'Enum#window,transparent,opaque',
36 $embed->attr_transform_post[] = new HTMLPurifier_AttrTransform_SafeEmbed();