X-Git-Url: http://git.onelab.eu/?p=www-register-wizard.git;a=blobdiff_plain;f=helpers%2Ftypography_helper.php;h=9cbedbbf5ee53f70d4ea24a7215a2f78723202f1;hp=f1bb25bf128ae7191b3a6654b9d3d49348d536c8;hb=4afb2fe256f094a1caf6bff14f51c6a88938cc9f;hpb=6907967d36358724c676a7998f55fc34e40c3b21 diff --git a/helpers/typography_helper.php b/helpers/typography_helper.php index f1bb25b..9cbedbb 100644 --- a/helpers/typography_helper.php +++ b/helpers/typography_helper.php @@ -1,72 +1,72 @@ -load->library('typography'); - - return $CI->typography->nl2br_except_pre($str); - } -} - -// ------------------------------------------------------------------------ - -/** - * Auto Typography Wrapper Function - * - * - * @access public - * @param string - * @param bool whether to allow javascript event handlers - * @param bool whether to reduce multiple instances of double newlines to two - * @return string - */ -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); - } -} - -/* End of file typography_helper.php */ +load->library('typography'); + + return $CI->typography->nl2br_except_pre($str); + } +} + +// ------------------------------------------------------------------------ + +/** + * Auto Typography Wrapper Function + * + * + * @access public + * @param string + * @param bool whether to allow javascript event handlers + * @param bool whether to reduce multiple instances of double newlines to two + * @return string + */ +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); + } +} + +/* End of file typography_helper.php */ /* Location: ./system/helpers/typography_helper.php */ \ No newline at end of file