ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Ruby.php
Go to the documentation of this file.
1
<?
php
2
7
class
HTMLPurifier_HTMLModule_Ruby
extends
HTMLPurifier_HTMLModule
8
{
9
13
public
$name
=
'Ruby'
;
14
18
public
function
setup
(
$config
)
19
{
20
$this->
addElement
(
21
'ruby'
,
22
'Inline'
,
23
'Custom: ((rb, (rt | (rp, rt, rp))) | (rbc, rtc, rtc?))'
,
24
'Common'
25
);
26
$this->
addElement
(
'rbc'
,
false
,
'Required: rb'
,
'Common'
);
27
$this->
addElement
(
'rtc'
,
false
,
'Required: rt'
,
'Common'
);
28
$rb = $this->
addElement
(
'rb'
,
false
,
'Inline'
,
'Common'
);
29
$rb->excludes = array(
'ruby'
=>
true
);
30
$rt = $this->
addElement
(
'rt'
,
false
,
'Inline'
,
'Common'
, array(
'rbspan'
=>
'Number'
));
31
$rt->excludes = array(
'ruby'
=>
true
);
32
$this->
addElement
(
'rp'
,
false
,
'Optional: #PCDATA'
,
'Common'
);
33
}
34
}
35
36
// vim: et sw=4 sts=4
HTMLPurifier_HTMLModule_Ruby\setup
setup($config)
Definition:
Ruby.php:18
$config
$config
Definition:
bootstrap.php:15
HTMLPurifier_HTMLModule_Ruby
XHTML 1.1 Ruby Annotation Module, defines elements that indicate short runs of text alongside base te...
Definition:
Ruby.php:7
HTMLPurifier_HTMLModule\addElement
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition:
HTMLModule.php:144
HTMLPurifier_HTMLModule
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition:
HTMLModule.php:18
php
HTMLPurifier_HTMLModule_Ruby\$name
$name
string
Definition:
Ruby.php:13
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
HTMLModule
Ruby.php
Generated on Thu Jan 30 2025 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)