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";
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";