Php processes the form content. Php returns the ** @ param $ string * @ parambool $ HTML ** @ returnarray | string * publicstaticfunctionsafeOutput ($ string, $ html php processes the form content
/*** After filtering HTML content, 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 ('tool', 'htmlentitiesutf8'), $ string); return htmlentities (string) $ string, $ type, 'utf-8');} public static function htmlentitiesDecodeUTF8 ($ string) {if (is_array ($ string) return array_map (array ('t Ools ', 'htmlentitiesdecodeutf8'), $ string); return html_entity_decode (string) $ string, ENT_QUOTES, 'utf-8 ');} /*** process POST content ** @ return array */public static function safePostVars () {if (! Is_array ($ _ POST) return array (); $ _ POST = array_map (array ('tool', 'htmlentitiesutf8'), $ _ POST );}
Returns ** @ param $ string * @ param bool $ HTML ** @ return array | string */public static function safeOutput ($ string, $ html =...