2 defined('SYSPATH') or die('No direct access allowed.');
5 * Add functionality to kohanas built-in security helper
9 * Escape scring only if told to
11 public static function xss_clean($str) {
12 if (config
::get_cgi_cfg_key('escape_html_tags')) {
13 return str_replace(html
::specialchars('<br />'), '<br />', html
::specialchars($str));