im trying to get rid of all html from a string. this is what i have so far PHP Code: $Data = ereg_replace("/<.*>/i", "", $Data);
$Data = ereg_replace("/<.*>/i", "", $Data);
Last edited by penagate; Apr 3rd, 2007 at 12:34 PM. Reason: fixed code tags
try php Code: $text = "(html code here)"; strip_tags($text);
$text = "(html code here)"; strip_tags($text);
My usual boring signature: Something
You could just try strip_tags() -- Ryan
My Blog. Ryan Jones.
little late there
Forum Rules