123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- if ( ! function_exists('nl2br_except_pre'))
- {
-
- function nl2br_except_pre($str)
- {
- $CI =& get_instance();
- $CI->load->library('typography');
- return $CI->typography->nl2br_except_pre($str);
- }
- }
- if ( ! function_exists('auto_typography'))
- {
-
- function auto_typography($str, $reduce_linebreaks = FALSE)
- {
- $CI =& get_instance();
- $CI->load->library('typography');
- return $CI->typography->auto_typography($str, $reduce_linebreaks);
- }
- }
- if ( ! function_exists('entity_decode'))
- {
-
- function entity_decode($str, $charset = NULL)
- {
- return get_instance()->security->entity_decode($str, $charset);
- }
- }
|