Forum Moderators: coopster
Is it output generated from a form or something?
I imagine what you're looking for is the 'str_replace' function.
Try this:
$yourstring = str_replace('/n/n', '/n', $yourstring);
This will replace two new line characters in $yourstring with one new line character.
preg_replace("/\n\n+/s","\n",$string);