/** * Filter HTML content to return * * @param $string * @param bool $html * * @return array|string */public static function Safeoutput ( $string, $html = False) {if (! $html) $string = Strip_tags ($string); return @Tools:: HtmlentitiesUTF8 ($string, ent_quotes);} public static function HtmlentitiesUTF8 ($string, $type = ent_quotes) {if (Is_array ($string)) return Array_map (Array (' Tools ', ' htmlentitiesUTF8 '), $string); return htmlentities (String) $string, $type, ' utf-8 ');} public static function HtmlentitiesDecodeUTF8 ($string) {if (Is_array ($string)) return Array_map (Array (' Tools ', ' HtmlentitiesDecodeUTF8 '), $string); return Html_entity_decode (String) $string, ent_quotes, ' utf-8 ');} /** * Processing of POST Contents * * @return array */public static function Safepostvars () {if (!is_array ($_post)) return array (); $_post = Array_map (Array (' Tools ', ' htmlentitiesUTF8 '), $_post);}