00001 <?php 00032 class HtmlspecialcharsFilter implements FilterInterface 00033 { 00041 public static function execute ($s, $options) 00042 { 00043 $charset = (isset($options['charset']) && $options['charset']) ? $options['charset'] : Config::get('config.application.charset'); 00044 return htmlspecialchars((string) $s, ENT_QUOTES, $charset); 00045 } 00046 }