mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-09 07:21:54 +00:00
Revert back to pre XHTMLDefinition testing state.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@724 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
21116373a7
commit
219902ebff
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Printer.php';
|
require_once 'HTMLPurifier/Printer.php';
|
||||||
require_once 'HTMLPurifier/XHTMLDefinition.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_Printer_HTMLDefinition extends HTMLPurifier_Printer
|
class HTMLPurifier_Printer_HTMLDefinition extends HTMLPurifier_Printer
|
||||||
{
|
{
|
||||||
@ -15,12 +14,7 @@ class HTMLPurifier_Printer_HTMLDefinition extends HTMLPurifier_Printer
|
|||||||
$ret = '';
|
$ret = '';
|
||||||
$this->config =& $config;
|
$this->config =& $config;
|
||||||
|
|
||||||
if (isset($_GET['x'])) { // hidden settings
|
$this->def = $config->getHTMLDefinition();
|
||||||
$this->def = new HTMLPurifier_XHTMLDefinition($config);
|
|
||||||
$this->def->setup($config);
|
|
||||||
} else {
|
|
||||||
$this->def = $config->getHTMLDefinition();
|
|
||||||
}
|
|
||||||
$def =& $this->def;
|
$def =& $this->def;
|
||||||
|
|
||||||
$ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
|
$ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));
|
||||||
|
Loading…
Reference in New Issue
Block a user