ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
$config
$config
Definition:
flush-definition-cache.php:23
HTMLPurifier_AttrTransform_BdoDir\transform
transform($attr, $config, $context)
Definition:
BdoDir.php:17
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 Tue Jan 28 2025 19:01:03 for ILIAS by
1.8.13 (using
Doxyfile
)