HTMLPurifier 4.4.0
|
00001 <?php 00002 00010 class HTMLPurifier_HTMLModule_Iframe extends HTMLPurifier_HTMLModule 00011 { 00012 00013 public $name = 'Iframe'; 00014 public $safe = false; 00015 00016 public function setup($config) { 00017 if ($config->get('HTML.SafeIframe')) { 00018 $this->safe = true; 00019 } 00020 $this->addElement( 00021 'iframe', 'Inline', 'Flow', 'Common', 00022 array( 00023 'src' => 'URI#embedded', 00024 'width' => 'Length', 00025 'height' => 'Length', 00026 'name' => 'ID', 00027 'scrolling' => 'Enum#yes,no,auto', 00028 'frameborder' => 'Enum#0,1', 00029 'longdesc' => 'URI', 00030 'marginheight' => 'Pixels', 00031 'marginwidth' => 'Pixels', 00032 ) 00033 ); 00034 } 00035 00036 } 00037 00038 // vim: et sw=4 sts=4