Converts special characters in a string to XHTML-valid ASCII encoding the same as htmlentities except
this method allows the use of HTML tags within your string. Signature is the same as htmlentities except
that the only character sets available (third argument) are UTF-8 (default) and ISO-8859-1 (Latin-1).
public static xhtmlentities ( string $string, integer $quoteStyle = ENT_NOQUOTES, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string | ||
$string | string | |
$quoteStyle | integer | Constants available are ENT_NOQUOTES (default), ENT_QUOTES, ENT_COMPAT |
$charset | string | Only valid options are UTF-8 (default) and ISO-8859-1 (Latin-1) |
$doubleEncode | boolean | Default is false |
return | string |