Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / HTMLModule / Tidy / XHTMLStrict.php
blobb701491ecd0a544624295708bcb642c570c24f9d
1 <?php
3 require_once 'HTMLPurifier/HTMLModule/Tidy.php';
4 require_once 'HTMLPurifier/ChildDef/StrictBlockquote.php';
6 class HTMLPurifier_HTMLModule_Tidy_XHTMLStrict extends
7 HTMLPurifier_HTMLModule_Tidy
10 var $name = 'Tidy_XHTMLStrict';
11 var $defaultLevel = 'light';
13 function makeFixes() {
14 $r = array();
15 $r['blockquote#content_model_type'] = 'strictblockquote';
16 return $r;
19 var $defines_child_def = true;
20 function getChildDef($def) {
21 if ($def->content_model_type != 'strictblockquote') return false;
22 return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);