ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
BdoDir.php
Go to the documentation of this file.
1
<?
php
2
3
// this MUST be placed in post, as it assumes that any value in dir is valid
4
8
class
HTMLPurifier_AttrTransform_BdoDir
extends
HTMLPurifier_AttrTransform
9
{
10
17
public
function
transform
($attr,
$config
,
$context
)
18
{
19
if
(isset($attr[
'dir'
])) {
20
return
$attr;
21
}
22
$attr[
'dir'
] =
$config
->get(
'Attr.DefaultTextDir'
);
23
return
$attr;
24
}
25
}
26
27
// vim: et sw=4 sts=4
HTMLPurifier_AttrTransform
Processes an entire attribute array for corrections needing multiple values.
Definition:
AttrTransform.php:17
$context
$context
Definition:
webdav.php:25
$config
$config
Definition:
bootstrap.php:15
HTMLPurifier_AttrTransform_BdoDir\transform
transform($attr, $config, $context)
Definition:
BdoDir.php:17
php
HTMLPurifier_AttrTransform_BdoDir
Post-trasnform that ensures that bdo tags have the dir attribute set.
Definition:
BdoDir.php:8
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
AttrTransform
BdoDir.php
Generated on Thu Jan 16 2025 19:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)