PHP Converts characters to HTML entities – PHP April 19, 2011 Pramod T P Leave a comment <?php $str = "<p>First Name</p>"; echo htmlentities($str); //<p>First Name</p> ?> Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...