note 92867 added to function.htmlspecialchars
| From: | chuck at N0SPAM1command dot com | Date: | Wed, 12 Aug 2009 14:06:58 +0000 |
| Subject: | note 92867 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159368@lists.php.net to get a copy of this message | ||
NOTE:
I made an error in my last post.
The last 3 lines should have read
<?php
...
$text = get_page($url);
--------^^^^^^^^
$new = htmlspecialchars($text, ENT_QUOTES); // here is the magic :)
echo '<pre>' .$new. '</pre>';
?>
OOPS!
----
Server IP: 209.41.74.194
Probable Submitter: 64.81.172.194
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php
Edit -- https://master.php.net/note/edit/92867
Del: integrated -- https://master.php.net/note/delete/92867/integrated
Del: useless -- https://master.php.net/note/delete/92867/useless
Del: bad code -- https://master.php.net/note/delete/92867/bad+code
Del: spam -- https://master.php.net/note/delete/92867/spam
Del: non-english -- https://master.php.net/note/delete/92867/non-english
Del: in docs -- https://master.php.net/note/delete/92867/in+docs
Del: other reasons-- https://master.php.net/note/delete/92867
Reject -- https://master.php.net/note/reject/92867
Search -- https://master.php.net/manage/user-notes.php