From b8df47e97c2305fbb10f362e6eb0a7e375c07a40 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 Aug 2012 04:52:18 -0700 Subject: [PATCH] bbcode quote display --- include/bbcode.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bbcode.php b/include/bbcode.php index 08beeddfc..cf8d74bb1 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -411,6 +411,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { $Text = preg_replace('/\[\&\;([#a-z0-9]+)\;\]/','&$1;',$Text); + $Text = preg_replace('/\&\#039\;/','\'',$Text); + $Text = preg_replace('/\"\;/','"',$Text); // fix any escaped ampersands that may have been converted into links $Text = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text);