]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Iframe.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / HTMLModule / Iframe.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * XHTML 1.1 Iframe Module provides inline frames.\r
5 *\r
6 * @note This module is not considered safe unless an Iframe\r
7 * whitelisting mechanism is specified. Currently, the only\r
8 * such mechanism is %URL.SafeIframeRegexp\r
9 */\r
10class HTMLPurifier_HTMLModule_Iframe extends HTMLPurifier_HTMLModule\r
11{\r
12\r
13 /**\r
14 * @type string\r
15 */\r
16 public $name = 'Iframe';\r
17\r
18 /**\r
19 * @type bool\r
20 */\r
21 public $safe = false;\r
22\r
23 /**\r
24 * @param HTMLPurifier_Config $config\r
25 */\r
26 public function setup($config)\r
27 {\r
28 if ($config->get('HTML.SafeIframe')) {\r
29 $this->safe = true;\r
30 }\r
31 $this->addElement(\r
32 'iframe',\r
33 'Inline',\r
34 'Flow',\r
35 'Common',\r
36 array(\r
37 'src' => 'URI#embedded',\r
38 'width' => 'Length',\r
39 'height' => 'Length',\r
40 'name' => 'ID',\r
41 'scrolling' => 'Enum#yes,no,auto',\r
42 'frameborder' => 'Enum#0,1',\r
43 'longdesc' => 'URI',\r
44 'marginheight' => 'Pixels',\r
45 'marginwidth' => 'Pixels',\r
46 )\r
47 );\r
48 }\r
49}\r
50\r
51// vim: et sw=4 sts=4\r