THANKS!!! great help! :oP
"Liljim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Actually, I just threw in this amendment: > > function CleanUpHtml($var) > { > > $var = preg_replace("!<t(a|r|d)(.*?)style=\".*?\"(.*?)>!is", "<t$1$2$3>", > $var); > $var = preg_replace("!<table.*?>!is", "<TABLE border=1 > bordercolor='#666666' cellpadding=3 cellspacing=0>", $var); > $var = str_replace("<p>", "", $var); > $var = str_replace("<P>", "", $var); > $var = str_replace("</p>", "", $var); > $var = str_replace("</P>", "", $var); > > preg_match_all("!<(/?t.*?)>!is", $var, $output); > > if (count($output[0]) > 0) > { > for($i=0; $i<count($output[0]); $i++) > { > $var = str_replace($output[0][$i], strtolower($output[0][$i]), $var); > } > } > > return $var; > } > > and now all of the table tags are lowercase. Much nicer. > > -J > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php