public static function PurifyTXT($html = null, $encoding = 'UTF-8') {
		
		$config = self::GetHTMLPurifierConfig();
		$config->set('Core.Encoding', $encoding);
		$config->set('HTML.Allowed', null); // Allow Nothing
		$config->set('HTML.AllowedElements', array());
		$purifier = new \HTMLPurifier($config);
		return $purifier->purify($html);
	}
public static function PurifyTXT($html = null, $encoding = 'UTF-8') {
		
		$config = self::GetHTMLPurifierConfig();
		$config->set('Core.Encoding', $encoding);
		$config->set('HTML.Allowed', null); // Allow Nothing
		$config->set('HTML.AllowedElements', array());
		$purifier = new \HTMLPurifier($config);
		return $purifier->purify($html);
	}
public static function PurifyTXT ( $ html = null , $ encoding = 'UTF-8' ) { $ config = self :: GetHTMLPurifierConfig ( ) ; $ config -> set ( 'Core.Encoding' , $ encoding ) ; $ config -> set ( 'HTML.Allowed' , null ) ; // Allow Nothing $ config -> set ( 'HTML.AllowedElements' , array ( ) ) ; $ purifier = new \ HTMLPurifier ( $ config ) ; return $ purifier -> purify ( $ html ) ; }
Strip all HTML tags, like strip_tags, but encoding safe
@param String $html HTML to purify
@param String $encoding
@return String The input string without any html tags
Strip all HTML tags like strip_tags but encoding safe