htmlspecialchars < PHP
The htmlspecialchars function converts six special characters to HTML entities. They are: & becomes & " becomes ", ' becomes ',< becomes < and > becomes >
$str = "That was a bold statement.";
echo htmlspecialchars($str);
// That was a <b>bold</b> statement.