note 50232 added to function.htmlentities
| From: | fabian dot lange at web dot de | Date: | Tue, 22 Feb 2005 13:31:05 +0000 |
| Subject: | note 50232 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85375@lists.php.net to get a copy of this message | ||
Hi Marques,
just to improve your pattern. Most likely you dont want to escape the html comment string <!--
so simply add the exclamationmark to your pattern
<?php
$pattern = '<([a-zA-Z0-9\. "\'_\/\-=;\(\)?&#%!]+)>';
?>
Thanks for all the good tips on this page ;)
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50232
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50232&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50232&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50232&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50232&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50232&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50232&report=yes
Search -- http://master.php.net/manage/user-notes.php