From 880ef2d438e4505c586a3a2caa3abb9859ca41e0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 18 Oct 2010 17:48:33 -0600 Subject: [PATCH] Fixes for charset changes - make Cleanhtml work properly again --- framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php b/framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php index 934a70d50..3c57794ca 100644 --- a/framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php +++ b/framework/Text_Filter/lib/Horde/Text/Filter/Cleanhtml.php @@ -6,6 +6,8 @@ *
  * 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
  * 
@@ -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 ); -- 2.11.0