mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
allow bbcode representation of html symbols such as © by wrapping in bb brackets
This commit is contained in:
parent
8f0f644295
commit
e9e4fb664a
1 changed files with 3 additions and 0 deletions
|
@ -298,6 +298,9 @@ function bbcode($Text,$preserve_nl = false) {
|
|||
$Text = preg_replace_callback("/\[nobb\](.*?)\[\/nobb\]/ism", 'bb_unspacefy_and_trim',$Text);
|
||||
$Text = preg_replace_callback("/\[pre\](.*?)\[\/pre\]/ism", 'bb_unspacefy_and_trim',$Text);
|
||||
|
||||
|
||||
$Text = preg_replace('/\[\&\;([#a-z0-9]+)\;\]/','&$1;',$Text);
|
||||
|
||||
// fix any escaped ampersands that may have been converted into links
|
||||
$Text = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text);
|
||||
if(strlen($saved_image))
|
||||
|
|
Loading…
Reference in a new issue