ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
$def
Definition: croninfo.php:21