PDA

View Full Version : str_replace linebreaks and missing whitespaces


GNDI
09-29-2006, 10:47 AM
I do a lot of thumbnails on my forum. But it looks messi because not all users are using the same syntax in there posts. Therefore I came up with this idear:


$text = str_replace("[/img][/url]", "[/img] ", $text);
$text = str_replace("[/img]\n", "[/img] [url]", $text);


But where to place the code....... I havetried several places but nothing worked out for me:(

Can anyone help me? and if so, could you make it as a product?