diff --git a/INSTALL b/INSTALL index 45ad662e..8c03631f 100644 --- a/INSTALL +++ b/INSTALL @@ -130,6 +130,7 @@ If your website is in UTF-8 and XHTML Transitional, use this code: $purifier = new HTMLPurifier(); $clean_html = $purifier->purify($dirty_html); +?> If your website is in a different encoding or doctype, use this code: diff --git a/TODO b/TODO index 16316f4d..0cc278fa 100644 --- a/TODO +++ b/TODO @@ -5,27 +5,34 @@ Ongoing - Lots of profiling, make it faster! - Plugins for major CMSes (very tricky issue) -1.2 release - - Additional support for poorly written HTML - - Implement all non-essential attribute transforms - - Microsoft Word HTML cleaning (i.e. MsoNormal) - - Error logging for filtering and cleanup procedures +1.1.1 release + - Preservation of indentation in tables (tricky since the contents can be + shuffled around) -1.3 release - - Formatters for plaintext - - Auto-paragraphing (be sure to leverage fact that we know when things - shouldn't be paragraphed, such as lists and tables). - - Linkify URLs +1.2 release - Make URI validation routines tighter (especially mailto) - More extensive URI filtering schemes - Allow for background-image and list-style-image (see above) - Distinguish between different types of URIs, for instance, a mailto URI in IMG SRC is nonsensical + - Error logging for filtering/cleanup procedures -2.0 release +1.3 release - Add various "levels" of cleaning - Related: Allow strict (X)HTML +1.4 release + - Additional support for poorly written HTML + - Implement all non-essential attribute transforms + - Microsoft Word HTML cleaning (i.e. MsoNormal) + +2.0 release + - Formatters for plaintext + - Auto-paragraphing (be sure to leverage fact that we know when things + shouldn't be paragraphed, such as lists and tables). + - Linkify URLs + - Smileys + 3.0 release - Extended HTML capabilities based on namespacing and tag transforms - Hooks for adding custom processors to custom namespaced tags and @@ -43,8 +50,6 @@ Unknown release (on a scratch-an-itch basis) - Pretty-printing HTML (adds dependency of Generator to HTMLDefinition) - Non-lossy dumb alternate character encoding transformations, achieved by numerically encoding all non-ASCII characters - - Preservation of indentation in tables (tricky since the contents can be - shuffled around) Wontfix - Non-lossy smart alternate character encoding transformations diff --git a/library/HTMLPurifier/AttrDef/Host.php b/library/HTMLPurifier/AttrDef/Host.php index c373d9ef..47bce063 100644 --- a/library/HTMLPurifier/AttrDef/Host.php +++ b/library/HTMLPurifier/AttrDef/Host.php @@ -11,9 +11,14 @@ class HTMLPurifier_AttrDef_Host extends HTMLPurifier_AttrDef { /** - * Instances of HTMLPurifier_AttrDef_IPv4 and HTMLPurifier_AttrDef_IPv6 + * Instance of HTMLPurifier_AttrDef_IPv4 sub-validator */ - var $ipv4, $ipv6; + var $ipv4; + + /** + * Instance of HTMLPurifier_AttrDef_IPv6 sub-validator + */ + var $ipv6; function HTMLPurifier_AttrDef_Host() { $this->ipv4 = new HTMLPurifier_AttrDef_IPv4();