Quote:
|
Originally Posted by munki
|
Actually he's looking to do the opposite. Here's a bit of code I found years ago that does the trick if you need to convert <br> tags to the newline char...
Code:
function br2nl($text) {
$text = str_replace("<br />","",$text);
$text = str_replace("<br>","",$text);
return $text;
}