note 93471 added to function.htmlentities
| From: | laffingdrum at gmail dot com | Date: | Fri, 11 Sep 2009 13:20:09 +0000 |
| Subject: | note 93471 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160449@lists.php.net to get a copy of this message | ||
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
<script>alert("html entities is not working");</script>
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
<script>alert("html entities is not working");</script>
waiting for good solution
best regards
vikal
----
Server IP: 69.147.83.197
Probable Submitter: 110.44.113.254 (proxied: 202.51.72.73)
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/93471
Del: integrated -- https://master.php.net/note/delete/93471/integrated
Del: useless -- https://master.php.net/note/delete/93471/useless
Del: bad code -- https://master.php.net/note/delete/93471/bad+code
Del: spam -- https://master.php.net/note/delete/93471/spam
Del: non-english -- https://master.php.net/note/delete/93471/non-english
Del: in docs -- https://master.php.net/note/delete/93471/in+docs
Del: other reasons-- https://master.php.net/note/delete/93471
Reject -- https://master.php.net/note/reject/93471
Search -- https://master.php.net/manage/user-notes.php