load->library('typography');return $CI->typography->nl2br_except_pre($str);}}// ------------------------------------------------------------------------/** * Auto Typography Wrapper Function * 自動排版封裝函數 * * @accesspublic * @paramstring * @paramboolwhether to allow javascript event handlers * 是否允許JavaScript事件處理常式 * @paramboolwhether to reduce multiple instances of double newlines to two * 是否減少兩個雙換行的多個執行個體 * @returnstring */if ( ! function_exists('auto_typography')){function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE){$CI =& get_instance();$CI->load->library('typography');return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks);}}// --------------------------------------------------------------------/** * HTML Entities Decode * HTML實體解碼 * This function is a replacement for html_entity_decode() * 這個函數是一個更換html_entity_decode() * @accesspublic * @paramstring * @returnstring */if ( ! function_exists('entity_decode')){function entity_decode($str, $charset='UTF-8'){global $SEC;return $SEC->entity_decode($str, $charset);}}/* End of file typography_helper.php *//* Location: ./system/helpers/typography_helper.php */