This online php htmlentities convertor can be used to apply php htmlentities function to given string.
htmlentities usage notes
$encoded_value = htmlentities (string $string, $flags=ENT_COMPAT, $encoding=ini_get("default_charset"), $double_encode = true);
Note that default $flag value ENT_COMPAT will covert double-quotes only (not single quotes). Use ENT_QUOTES to covert both double-quotes and single-quotes. For for information please see official htmlentities documentation.
htmlentities value for special ascii characters
Char | HTML entity |
---|---|
" | " |
& | & |
< | < |
> | > |