src/UI/HTML/Exception/Trace.php
protected static function secureString( $string, $maxLength = 0, $mask = '&hellip;' )
	{
		if( $maxLength && strlen( $string ) > $maxLength )
			$value	= Alg_Text_Trimmer::trimCentric( $string, $maxLength, $mask );
//		$string	= addslashes( $string );
		$string	= htmlentities( $string, ENT_QUOTES, 'UTF-8' );
		$string	= nl2br( $string );
		return $string;
	}
protected static function secureString( $string, $maxLength = 0, $mask = '&hellip;' )
	{
		if( $maxLength && strlen( $string ) > $maxLength )
			$value	= Alg_Text_Trimmer::trimCentric( $string, $maxLength, $mask );
//		$string	= addslashes( $string );
		$string	= htmlentities( $string, ENT_QUOTES, 'UTF-8' );
		$string	= nl2br( $string );
		return $string;
	}
protected static function secureString ( $ string , $ maxLength = 0 , $ mask = '&hellip;' ) { if ( $ maxLength && strlen ( $ string ) > $ maxLength ) $ value = Alg_Text_Trimmer :: trimCentric ( $ string , $ maxLength , $ mask ) ; //		$string	= addslashes( $string ); $ string = htmlentities ( $ string , ENT_QUOTES , 'UTF-8' ) ; $ string = nl2br ( $ string ) ; return $ string ; }
Applies filters on content string to avoid injections.
@access		public
@static
@param		string		$string			String to secure
@param		integer		$maxLength		Number of characters to show at most
@param		string		$mask			Mask to show for cutted content
@return		string
Applies filters on content string to avoid injections .