[PHP] Re: HTML formatting

2002-06-28 Thread liljim
Hello, I wrote this function: ?php 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='#66' cellpadding=3 cellspacing=0, $var); $var = str_replace(p, , $var); $var =

[PHP] Re: HTML formatting

2002-06-28 Thread liljim
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='#66' cellpadding=3 cellspacing=0, $var); $var = str_replace(p, , $var); $var =

[PHP] Re: HTML formatting

2002-06-28 Thread BB
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 =