/**
* Filter HTML content to return
* *
@param $string
* @param bool $html
* *
@return arraystring * *
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 ');
/**
* Handles post content
*
@return Array
/public
static function Safepostvars () {
if!is_ Array ($_post)) return
array ();
$_post = Array_map (Array (' Tools ', ' htmlentitiesUTF8 '), $_post);
}