Thanks for replying. But actually, that seems to stip all kinds of chunks of html from $raw.
Here is my program with you code:
<?
$raw = "<body>in the <a href=\"test\">but to the victor</a> end</body>";
$raw = eregi_replace(">[<]*<"," ",$raw);
echo $raw;
?>
This is what it produces in $raw:
<html body a href="test" /a /body /html>
This is what I want it to produce:
<body>in the <a href="test">but to the victory</a> end</body>
Any ideas?