4
* XHTML 1.1 Iframe Module provides inline frames.
6
* @note This module is not considered safe unless an Iframe
7
* whitelisting mechanism is specified. Currently, the only
8
* such mechanism is %URL.SafeIframeRegexp
10
class HTMLPurifier_HTMLModule_Iframe extends HTMLPurifier_HTMLModule
13
public $name = 'Iframe';
16
public function setup($config) {
17
if ($config->get('HTML.SafeIframe')) {
21
'iframe', 'Inline', 'Flow', 'Common',
23
'src' => 'URI#embedded',
27
'scrolling' => 'Enum#yes,no,auto',
28
'frameborder' => 'Enum#0,1',
30
'marginheight' => 'Pixels',
31
'marginwidth' => 'Pixels',
4
* XHTML 1.1 Iframe Module provides inline frames.
6
* @note This module is not considered safe unless an Iframe
7
* whitelisting mechanism is specified. Currently, the only
8
* such mechanism is %URL.SafeIframeRegexp
10
class HTMLPurifier_HTMLModule_Iframe extends HTMLPurifier_HTMLModule
13
public $name = 'Iframe';
16
public function setup($config) {
17
if ($config->get('HTML.SafeIframe')) {
21
'iframe', 'Inline', 'Flow', 'Common',
23
'src' => 'URI#embedded',
27
'scrolling' => 'Enum#yes,no,auto',
28
'frameborder' => 'Enum#0,1',
30
'marginheight' => 'Pixels',
31
'marginwidth' => 'Pixels',