htmlentities

htmlentities -- Convert all applicable characters to HTML entities.

Description

string htmlentities(string string);

This function is identical to htmlspecialchars() in all ways, except that all characters which have HTML entity equivalents are translated into these entities.

At present, the ISO-8859-1 character set is used.

See also htmlspecialchars() and nl2br().