Escaping HTML entities
<?php $html = "<a href='fletch.html'>Stew's favorite movie.</a>\n"; print htmlspecialchars($html); print htmlspecialchars($html, ENT_QUOTES); print htmlspecialchars($html, ENT_NOQUOTES); ?>