PHPUnit does not like the static usage of DOMDocument.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 22 Jul 2010 17:23:36 +0000 (11:23 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 22 Jul 2010 19:25:37 +0000 (13:25 -0600)
framework/Text_Filter/lib/Horde/Text/Filter/Html2text.php

index 29c0865..ccae44d 100644 (file)
@@ -107,7 +107,8 @@ class Horde_Text_Filter_Html2text extends Horde_Text_Filter_Base
             $text = Horde_String::convertCharset($text, $this->_params['charset'], 'UTF-8');
 
             $old_error = libxml_use_internal_errors(true);
-            $doc = DOMDocument::loadHTML('<?xml encoding="UTF-8">' . $text);
+            $doc = new DOMDocument();
+            $doc->loadHTML('<?xml encoding="UTF-8">' . $text);
             if ($old_error) {
                 libxml_use_internal_errors(false);
             }