Bug #12860: problem with strip_tags()
| From: | costrova at prdel dot cz | Date: | Mon, 20 Aug 2001 13:45:13 +0000 |
| Subject: | Bug #12860: problem with strip_tags() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63828@lists.php.net to get a copy of this message | ||
From: costrova@prdel.cz
Operating system: Linux and Win
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: problem with strip_tags()
When I have text exported from MS Word to HTML where is
"<?xml:namespace..." (see $string) and I want strip tags from it, I get
text before it only.
example:
<?
$string = <<<EOD
<BODY><P class=MsoNormal><B><U>I am hungry<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /></U></B></P> <P
class=MsoNormal>I am really hungry<o:p></o:p></SPAN></BODY>
EOD;
var_dump(strip_tags($string));
?>
output is:
string(11) "I am hungry"
--
Edit bug report at: http://bugs.php.net/?id=12860&edit=1