1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5
* An open source application development framework for PHP 5.1.6 or newer
8
* @author ExpressionEngine Dev Team
9
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10
* @license http://codeigniter.com/user_guide/license.html
11
* @link http://codeigniter.com
16
// ------------------------------------------------------------------------
19
* CodeIgniter Typography Helpers
21
* @package CodeIgniter
24
* @author ExpressionEngine Dev Team
25
* @link http://codeigniter.com/user_guide/helpers/typography_helper.html
28
// ------------------------------------------------------------------------
31
* Convert newlines to HTML line breaks except within PRE tags
37
if ( ! function_exists('nl2br_except_pre'))
39
function nl2br_except_pre($str)
41
$CI =& get_instance();
43
$CI->load->library('typography');
45
return $CI->typography->nl2br_except_pre($str);
49
// ------------------------------------------------------------------------
52
* Auto Typography Wrapper Function
57
* @param bool whether to allow javascript event handlers
58
* @param bool whether to reduce multiple instances of double newlines to two
61
if ( ! function_exists('auto_typography'))
63
function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE)
65
$CI =& get_instance();
66
$CI->load->library('typography');
67
return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks);
72
// --------------------------------------------------------------------
75
* HTML Entities Decode
77
* This function is a replacement for html_entity_decode()
83
if ( ! function_exists('entity_decode'))
85
function entity_decode($str, $charset='UTF-8')
88
return $SEC->entity_decode($str, $charset);
92
/* End of file typography_helper.php */
93
/* Location: ./system/helpers/typography_helper.php */
b'\\ No newline at end of file'