Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #40637 (strip_tags() does not handle single quotes correctly) --FILE-- <?php ..

Decoded Output download

--TEST--
Bug #40637 (strip_tags() does not handle single quotes correctly)
--FILE--
<?php

$html = '<span title="Bug \' Trigger">Text</span>';
var_dump(strip_tags($html));

echo "Done
";
?>
--EXPECT--
string(4) "Text"
Done

Did this file decode correctly?

Original Code

--TEST--
Bug #40637 (strip_tags() does not handle single quotes correctly)
--FILE--
<?php

$html = '<span title="Bug \' Trigger">Text</span>';
var_dump(strip_tags($html));

echo "Done\n";
?>
--EXPECT--
string(4) "Text"
Done

Function Calls

strip_tags 1

Variables

$html <span title="Bug ' Trigger">Text</span>

Stats

MD5 76a8234b47fb1bcdbb30bceb75301ef5
Eval Count 0
Decode Time 83 ms