/system/helpers/typography_helper.php

Source: Internet
Author: User
Tags codeigniter
 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 */

  

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.