PHP 4.0 Bug #2028 Updated: strip_tags state engine inappropriate for single line of html.
| From: | Bug Database | Date: | Tue, 30 May 2000 17:18:53 +0000 |
| Subject: | PHP 4.0 Bug #2028 Updated: strip_tags state engine inappropriate for single line of html. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19781@lists.php.net to get a copy of this message | ||
ID: 2028
Updated by: rasmus
Reported By: cdi@thewebmasters.net
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
You want to strip incomplete tags because you are doing it on a line-by-line basis and the tag might
have been started on a previous line? Wouldn't it be easier to just concatenate your lines and
do the strip_tags() once for the whole thing? Stripping incomplete tags seems like a bad idea to me
and there is no way to ever get it right anyway since a tag that starts on line 1, continues on line
2 and ends on line 3 will be impossible to handle correctly.
Full Bug description available at: http://bugs.php.net/version4/?id=2028