ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Strict.php
Go to the documentation of this file.
1<?php
2
4{
8 public $name = 'Tidy_Strict';
9
13 public $defaultLevel = 'light';
14
18 public function makeFixes()
19 {
20 $r = parent::makeFixes();
21 $r['blockquote#content_model_type'] = 'strictblockquote';
22 return $r;
23 }
24
28 public $defines_child_def = true;
29
34 public function getChildDef($def)
35 {
36 if ($def->content_model_type != 'strictblockquote') {
37 return parent::getChildDef($def);
38 }
39 return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);
40 }
41}
42
43// vim: et sw=4 sts=4
Takes the contents of blockquote when in strict and reformats for validation.
$r
Definition: example_031.php:79