mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
24 lines
457 B
PHP
24 lines
457 B
PHP
--TEST--
|
|
Bug #45485 (strip_tags and <?XML tag)
|
|
--FILE--
|
|
<?php
|
|
|
|
$s =<<< EOD
|
|
This text is shown <?XML:NAMESPACE PREFIX = ST1 /><b>This Text disappears</b>
|
|
EOD;
|
|
|
|
$s = strip_tags($s);
|
|
echo htmlspecialchars($s),"\n";
|
|
|
|
$s =<<< EOD
|
|
This text is shown <?xml:NAMESPACE PREFIX = ST1 /><b>This Text disappears</b>
|
|
EOD;
|
|
|
|
$s = strip_tags($s);
|
|
echo htmlspecialchars($s),"\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
This text is shown This Text disappears
|
|
This text is shown This Text disappears
|