always use charset config item
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index 0bb0938..82e686e 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -39,9 +39,7 @@
function nl2br_except_pre($str)
{
$CI =& get_instance();
-
$CI->load->library('typography');
-
return $CI->typography->nl2br_except_pre($str);
}
}
@@ -86,7 +84,10 @@
{
global $SEC;
- if (empty($charset)) $charset = config_item('charset');
+ if (empty($charset))
+ {
+ $charset = config_item('charset');
+ }
return $SEC->entity_decode($str, $charset);
}