src/Helpers/DataHelper.php
public static function safeOutput($string, $clearTag = false)
    {
        if (!$clearTag) {
            $string = strip_tags($string);
        }

        return @self::htmlentitiesUTF8($string);
    }
public static function safeOutput($string, $clearTag = false)
    {
        if (!$clearTag) {
            $string = strip_tags($string);
        }

        return @self::htmlentitiesUTF8($string);
    }
public static function safeOutput ( $ string , $ clearTag = false ) { if ( ! $ clearTag ) { $ string = strip_tags ( $ string ) ; } return @ self :: htmlentitiesUTF8 ( $ string ) ; }
Sanitize a string
@param string $string String to sanitize
@param bool $clearTag clear html tag
@return string Sanitized string
Sanitize a string