php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #9072 unexpected behavior in strip_tags
Submitted: 2001-02-02 08:08 UTC Modified: 2001-02-02 08:48 UTC
From: ctuffli at yahoo dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4 OS: RedHat 6.1
Private report: No CVE-ID: None
 [2001-02-02 08:08 UTC] ctuffli at yahoo dot com
php setup: ./configure  --with-apxs=/usr/local/etc/httpd/bin/apxs --enable-versioning --with-mysql --enable-track-vars

script: <?php
	print strip_tags("> from an earlier email\n");
?>

prints

X-Powered-By: PHP/4.0.4
Content-type: text/html

 from an earlier email

and not
> from an earlier email

I'm writting an application which prints email messages and noticed this behavior in messages that quoted the previous message with the string "> ".  I expected strip_tags to do the equivalent of ereg_replace("<[^>]*>", "", $msg)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-02 08:48 UTC] rasmus@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 03:01:31 2024 UTC