Load->library (' typography '); return $CI->typography->nl2br_except_pre ($STR);}} ------------------------------------------------------------------------/** * Auto typography Wrapper Function * Auto-typesetting wrapper function * * @accesspublic * @paramstring * @paramboolwhether to allow JavaScript event handlers * Whether J is allowed Avascript event handler * @paramboolwhether to reduce multiple instances of double newlines to two * whether to reduce the number of two double-wrap multiple Instance * @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 entity decoding * This function is a replacement for html_entity_decode () * This is a replacement 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 */