diff --git a/library/HTMLPurifier/Lexer.php b/library/HTMLPurifier/Lexer.php index 7cfd8003..b1bd1ed0 100644 --- a/library/HTMLPurifier/Lexer.php +++ b/library/HTMLPurifier/Lexer.php @@ -66,6 +66,16 @@ HTMLPurifier_ConfigSchema::define(

'); +HTMLPurifier_ConfigSchema::define( + 'Core', 'AggressivelyFixLt', false, 'bool', ' +This directive enables aggressive pre-filter fixes HTML Purifier can +perform in order to ensure that open angled-brackets do not get killed +during parsing stage. Enabling this will result in two preg_replace_callback +calls and one preg_replace call for every bit of HTML passed through here. +It is not necessary and will have no effect for PHP 4. +This directive has been available since 2.1.0. +'); + /** * Forgivingly lexes HTML (SGML-style) markup into tokens. * diff --git a/library/HTMLPurifier/Lexer/DOMLex.php b/library/HTMLPurifier/Lexer/DOMLex.php index 1816add4..890c8a7e 100644 --- a/library/HTMLPurifier/Lexer/DOMLex.php +++ b/library/HTMLPurifier/Lexer/DOMLex.php @@ -3,16 +3,6 @@ require_once 'HTMLPurifier/Lexer.php'; require_once 'HTMLPurifier/TokenFactory.php'; -HTMLPurifier_ConfigSchema::define( - 'Core', 'AggressivelyFixLt', false, 'bool', ' -This directive enables aggressive pre-filter fixes HTML Purifier can -perform in order to ensure that open angled-brackets do not get killed -during parsing stage. Enabling this will result in two preg_replace_callback -calls and one preg_replace call for every bit of HTML passed through here. -It is not necessary and will have no effect for PHP 4. -This directive has been available since 2.1.0. -'); - /** * Parser that uses PHP 5's DOM extension (part of the core). *