gehe zur Dokumentation dieser Datei
20 $this->def =
$config->getHTMLDefinition();
22 $ret .= $this->
start(
'div', array(
'class' =>
'HTMLPurifier_Printer'));
29 $ret .= $this->
end(
'div');
40 $doctype = $this->def->doctype;
42 $ret .= $this->
start(
'table');
43 $ret .= $this->
element(
'caption',
'Doctype');
44 $ret .= $this->
row(
'Name', $doctype->name);
45 $ret .= $this->
row(
'XML', $doctype->xml ?
'Yes' :
'No');
46 $ret .= $this->
row(
'Default Modules', implode($doctype->modules,
', '));
47 $ret .= $this->
row(
'Default Tidy Modules', implode($doctype->tidyModules,
', '));
48 $ret .= $this->
end(
'table');
63 $ret .= $this->
start(
'table');
64 $ret .= $this->
element(
'caption',
'Environment');
66 $ret .= $this->
row(
'Parent of fragment',
$def->info_parent);
68 $ret .= $this->
row(
'Block wrap name',
$def->info_block_wrapper);
70 $ret .= $this->
start(
'tr');
71 $ret .= $this->
element(
'th',
'Global attributes');
73 $ret .= $this->
end(
'tr');
75 $ret .= $this->
start(
'tr');
76 $ret .= $this->
element(
'th',
'Tag transforms');
78 foreach (
$def->info_tag_transform as $old => $new) {
79 $new = $this->
getClass($new,
'TagTransform_');
80 $list[] =
"<$old> with $new";
83 $ret .= $this->
end(
'tr');
85 $ret .= $this->
start(
'tr');
86 $ret .= $this->
element(
'th',
'Pre-AttrTransform');
88 $ret .= $this->
end(
'tr');
90 $ret .= $this->
start(
'tr');
91 $ret .= $this->
element(
'th',
'Post-AttrTransform');
93 $ret .= $this->
end(
'tr');
95 $ret .= $this->
end(
'table');
106 $ret .= $this->
start(
'table');
107 $ret .= $this->
element(
'caption',
'Content Sets');
108 foreach ($this->def->info_content_sets as $name => $lookup) {
110 $ret .= $this->
start(
'tr');
112 $ret .= $this->
end(
'tr');
114 $ret .= $this->
end(
'table');
125 $ret .= $this->
start(
'table');
126 $ret .= $this->
element(
'caption',
'Elements ($info)');
127 ksort($this->def->info);
129 $ret .= $this->
start(
'tr');
131 $ret .= $this->
end(
'tr');
132 foreach ($this->def->info as $name =>
$def) {
133 $ret .= $this->
start(
'tr');
134 $ret .= $this->
element(
'th',
"<$name>", array(
'class' =>
'heavy',
'colspan' => 2));
135 $ret .= $this->
end(
'tr');
136 $ret .= $this->
start(
'tr');
137 $ret .= $this->
element(
'th',
'Inline content');
138 $ret .= $this->
element(
'td',
$def->descendants_are_inline ?
'Yes' :
'No');
139 $ret .= $this->
end(
'tr');
140 if (!empty(
$def->excludes)) {
141 $ret .= $this->
start(
'tr');
142 $ret .= $this->
element(
'th',
'Excludes');
144 $ret .= $this->
end(
'tr');
146 if (!empty(
$def->attr_transform_pre)) {
147 $ret .= $this->
start(
'tr');
148 $ret .= $this->
element(
'th',
'Pre-AttrTransform');
150 $ret .= $this->
end(
'tr');
152 if (!empty(
$def->attr_transform_post)) {
153 $ret .= $this->
start(
'tr');
154 $ret .= $this->
element(
'th',
'Post-AttrTransform');
156 $ret .= $this->
end(
'tr');
158 if (!empty(
$def->auto_close)) {
159 $ret .= $this->
start(
'tr');
160 $ret .= $this->
element(
'th',
'Auto closed by');
162 $ret .= $this->
end(
'tr');
164 $ret .= $this->
start(
'tr');
165 $ret .= $this->
element(
'th',
'Allowed attributes');
167 $ret .= $this->
end(
'tr');
169 if (!empty(
$def->required_attr)) {
170 $ret .= $this->
row(
'Required attributes', $this->
listify(
$def->required_attr));
175 $ret .= $this->
end(
'table');
188 $ret .= $this->
start(
'tr');
191 if (isset(
$def->elements)) {
192 if (
$def->type ==
'strictblockquote') {
193 $def->validateChildren(array(), $this->config, $context);
195 $elements =
$def->elements;
197 if (
$def->type ==
'chameleon') {
198 $attr[
'rowspan'] = 2;
199 } elseif (
$def->type ==
'empty') {
201 } elseif (
$def->type ==
'table') {
202 $elements = array_flip(
214 $ret .= $this->
element(
'th',
'Allowed children', $attr);
216 if (
$def->type ==
'chameleon') {
225 $ret .= $this->
end(
'tr');
226 $ret .= $this->
start(
'tr');
229 '<em>Inline</em>: ' .
235 } elseif (
$def->type ==
'custom') {
239 '<em>' . ucfirst(
$def->type) .
'</em>: ' .
246 '<em>' . ucfirst(
$def->type) .
'</em>: ' .
247 $this->escape($this->listifyTagLookup($elements)),
252 $ret .= $this->
end(
'tr');
265 foreach ($array as $name => $discard) {
266 if ($name !==
'#PCDATA' && !isset($this->def->info[$name])) {
284 foreach ($array as $obj) {
285 $list[] = $this->
getClass($obj,
'AttrTransform_');
299 foreach ($array as $name => $obj) {
300 if ($obj ===
false) {
303 $list[] =
"$name = <i>" . $this->
getClass($obj,
'AttrDef_') .
'</i>';
317 $ret .= $this->
start(
'tr');
318 $ret .= $this->
element(
'th', $text, array(
'colspan' => $num,
'class' =>
'heavy'));
319 $ret .= $this->
end(
'tr');
Sie sind hier: Home » MyOOS Benutzerhandbuch » HTML Purifier
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.