htmlentities()
htmlentities - Convert all applicable characters to HTML entities
Syntax
string htmlentities ()
Arguments
-
Description
This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.
Version
PHP 4, 5
Return value
Returns the encoded string.