From: friendica Date: Wed, 15 Aug 2012 11:52:18 +0000 (-0700) Subject: bbcode quote display X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b8df47e97c2305fbb10f362e6eb0a7e375c07a40;p=friendica.git bbcode quote display --- diff --git a/include/bbcode.php b/include/bbcode.php index 08beeddfc1..cf8d74bb1d 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);