Skip Menu |
 

This queue is for tickets about the PHP-Strings CPAN distribution.

Report information
The Basics
Id: 53432
Status: new
Priority: 0/
Queue: PHP-Strings

People
Owner: Nobody in particular
Requestors: HINNERK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.28
Fixed in: (no value)



Subject: Output of strip_tags differ to PHP's strip_tags
Please run these tests in both Perl and PHP:

print "result: " . strip_tags('<img src="a rhef" alt="test" Here more text'). "\n";
print "result: " . strip_tags('<img src="<a rhef>" alt="test">Here more text'). "\n";
print "result: " . strip_tags('<img src="" alt="test">Here more text<second tag>'). "\n";
print "result: " . strip_tags('<img src="<a rhef>" alt="test">Here more text<second tag>'). "\n";
print "result: " . strip_tags('<img src="<a rhef>" alt="test">Here more < other text<second tag>'). "\n";
print "result: " . strip_tags('<img src="<a rhef>" alt="test">Here more <other text<second tag>'). "\n";
print "result: " . strip_tags('<img src="A > B" alt="test">Here more text'). "\n";


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.