public static function escape( $value )
	{
		if ( $value instanceof Htmlable )
			return $value->toHtml();

		return htmlentities( $value, ENT_QUOTES, 'UTF-8', false );
	}
public static function escape( $value )
	{
		if ( $value instanceof Htmlable )
			return $value->toHtml();

		return htmlentities( $value, ENT_QUOTES, 'UTF-8', false );
	}
public static function escape ( $ value ) { if ( $ value instanceof Htmlable ) return $ value -> toHtml ( ) ; return htmlentities ( $ value , ENT_QUOTES , 'UTF-8' , false ) ; }
Escape HTML entities in a string.

@param  Htmlable|string $value
@return string
Escape HTML entities in a string .