From b15cbbb42ac971004311106e7bc30f1b834370ba Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 24 Jun 2007 20:29:50 +0000 Subject: [PATCH] [2.0.1] Officially add experimental auto-paragraphing and linkification functionality. Rename %Core.DefinitionCache to %Cache.DefinitionImpl. Have AutoParagraph handle even more edge cases. Fix MakeWellFormed bug. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1223 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 4 + library/HTMLPurifier/ConfigSchema.php | 1 + .../HTMLPurifier/DefinitionCacheFactory.php | 11 +- .../HTMLPurifier/Injector/AutoParagraph.php | 183 ++++++++++++++---- library/HTMLPurifier/Injector/Linkify.php | 8 + .../HTMLPurifier/Strategy/MakeWellFormed.php | 26 +-- tests/HTMLPurifier/ConfigTest.php | 4 +- .../Strategy/MakeWellFormedTest.php | 129 +++++++++++- 8 files changed, 297 insertions(+), 69 deletions(-) diff --git a/NEWS b/NEWS index 7587a6ee..fadfeaea 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 2.0.1, unknown release date ! Tag auto-closing now based on a ChildDef heuristic rather than a manually set auto_close array; some behavior may change +! Experimental AutoFormat functionality added: auto-paragraph and + linkify your HTML input by setting %AutoFormat.AutoParagraph and + %AutoFormat.Linkify to true - Clean up special case code for