From 9b1bb53234846f8dedbf10f0adf1033593ae26d7 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Apr 2012 16:31:49 -0700 Subject: fix_mce_lf on profiles --- include/text.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/text.php b/include/text.php index aced9e0a8..4ec59a665 100644 --- a/include/text.php +++ b/include/text.php @@ -1506,3 +1506,8 @@ function undo_post_tagging($s) { return $s; } +function fix_mce_lf($s) { + $s = str_replace("\r\n","\n",$s); + $s = str_replace("\n\n","\n",$s); + return $s; +} \ No newline at end of file -- cgit v1.2.3