Hello,
use regulars expressions :
// I assume that $html_code is an array
// in which we have put the original HTML
// page
$new_html_code =""; // Just to be sure
foreach ($html_code as $line)
{
$new_line = eregi_replace("some_reg_exp","replacement",$line);
$new_html_code .= $new_line;
}
// Now, in $new_html_code you now have
// the 'new' page
the details of reg exp depend of what kind of replacement you need to do, but
you get the idea.
Regards,
Hervé.