I've created a replacement function that (in my limited testing) fixes this problem and is easy to implement.
First, add this code to profiles.php after the include('lib-common.php') line.
function strip_tagsLB($text)
[/code]
{
// replace line endings;
$text = str_replace('',LB.LB, $text);
$text = str_replace('',LB.LB, $text);
$text = str_replace('
',LB.LB, $text);
$text = str_replace('
',LB.LB, $text);
$text = str_replace('
',LB.LB, $text);
$text = str_replace('
',LB, $text);
$text = str_replace('
',LB, $text);
$text = str_replace('
',LB, $text);
$text = str_replace('
',LB, $text);
//strip remaining tags
$text = strip_tags($text);
return $text;
}
Now search and replace the remainder of profiles.php, replacing all instances of strip_tags( with strip_tagsLB(
Be sure NOT to replace the strip_tags call in the function strip_tagsLB
As I've said I've only done limited testing, but this appears to maintain the paragraphing. Obviously, this can be customized further if you want to replace other HTML with line breaks.