note 93471 deleted from function.htmlentities by thiago

From: Date: Fri, 11 Sep 2009 13:23:16 +0000
Subject: note 93471 deleted from function.htmlentities by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160452@lists.php.net to get a copy of this message
Note Submitter: laffingdrum at gmail dot com ---- Hi i have test several times echo htmlentities('<script>alert("html entities is not working");</script>'); and output always be <script>alert("asdfasdf");</script> instead of &lt;script&gt;alert("html entities is not working");&lt;/script&gt; or if you do like this echo htmlentities('<html><head></head><body></body></html>'); and output will be <html><head></head><body></body></html> can anyone tell me why htmlentities does not convert the tag or can anyone tell me to how to get output like &lt;script&gt;alert("html entities is not working");&lt;/script&gt; waiting for good solution best regards vikal

« previous php.notes (#160452) next »