Tweaked the auto_typography function
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index ce62811..f0dd6fd 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -69,16 +69,21 @@
*
* @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)
+ function auto_typography($str, $allow_event_handlers = FALSE, $reduce_empty_lines = FALSE)
{
$CI =& get_instance();
$CI->load->library('typography');
+ $CI->typography->allow_js_event_handlers($allow_event_handlers);
+ $CI->typography->reduce_empty_lines($reduce_empty_lines);
+
return $CI->typography->convert($str);
}
}