From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to