Fixes for charset changes - make Cleanhtml work properly again
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 18 Oct 2010 23:48:33 +0000 (17:48 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 Oct 2010 17:16:46 +0000 (11:16 -0600)
framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php

index 934a70d..3c57794 100644 (file)
@@ -6,6 +6,8 @@
  * <pre>
  * body_only - (boolean) Only return the body data?
  *             DEFAULT: Return the whole HTML document
+ * charset - (string) Charset of the data.
+ *           DEFAULT: UTF-8
  * size - (integer) Only filter if data is below this size.
  *        DEFAULT: No default
  * </pre>
@@ -29,7 +31,7 @@ class Horde_Text_Filter_Cleanhtml extends Horde_Text_Filter_Base
      */
     protected $_params = array(
         'body_only' => false,
-        'charset' => 'us-ascii',
+        'charset' => 'UTF-8',
         'size' => false
     );