From 349c4de75bc11c2c186ba1133d5022d4d0731a79 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 30 Jul 2007 16:56:50 +0000 Subject: [PATCH] [2.1.0] Standalone file now can be generated using maintenance/merge-library.php. Also: - HTMLPURIFIER_PREFIX constant added, and relevant files transitioned over - Custom ChildDef added to default include list - Tester accepts ?standalone parameter git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1316 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 7 + library/HTMLPurifier.php | 3 + library/HTMLPurifier/ContentSets.php | 1 + .../DefinitionCache/Serializer.php | 2 +- library/HTMLPurifier/EntityLookup.php | 2 +- library/HTMLPurifier/LanguageFactory.php | 2 +- library/HTMLPurifier/Printer/ConfigForm.php | 4 +- library/HTMLPurifier/URISchemeRegistry.php | 6 +- maintenance/merge-library.php | 190 ++++++++++++++++++ .../DefinitionCache/SerializerTest.php | 3 +- tests/index.php | 8 +- 11 files changed, 218 insertions(+), 10 deletions(-) create mode 100644 maintenance/merge-library.php diff --git a/NEWS b/NEWS index 1ae3baa5..7e48c753 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier ! With %Core.AggressivelyFixLt, <3 and similar emoticons no longer trigger HTML removal in PHP5 (DOMLex). This directive is not necessary for PHP4 (DirectLex). +! Standalone file now available, which greatly reduces the amount of + includes (although there are still a few files that reside in the + standalone folder) - AutoFormatters emit friendly error messages if tags or attributes they need are not allowed - ConfigForm's compactification of directive names is now configurable @@ -34,6 +37,10 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier . Hidden element content removal genericized: %Core.HiddenElements can be used to customize this behavior, by default