ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
SafeEmbed.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_HTMLModule_SafeEmbed
extends
HTMLPurifier_HTMLModule
7
{
8
9
public
$name
=
'SafeEmbed'
;
10
11
public
function
setup
(
$config
) {
12
13
$max =
$config
->get(
'HTML.MaxImgLength'
);
14
$embed = $this->
addElement
(
15
'embed'
,
'Inline'
,
'Empty'
,
'Common'
,
16
array(
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
'wmode'
=>
'Enum#window'
,
24
'name'
=>
'ID'
,
25
)
26
);
27
$embed->attr_transform_post[] =
new
HTMLPurifier_AttrTransform_SafeEmbed
();
28
29
}
30
31
}
32
33
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
HTMLModule
SafeEmbed.php
Generated on Mon Apr 25 2016 19:01:31 for ILIAS by
1.8.1.2 (using
Doxyfile
)