fix regex

This commit is contained in:
Mario Vavti 2016-12-14 13:17:33 +01:00
parent 028935a318
commit a7af6d8a3c

View File

@ -149,7 +149,7 @@ function markdown_to_bb($s, $use_zrl = false) {
$s = html2bbcode($s);
$s = preg_replace("/\[([uz])rl=(.*?)\]\[\/[uz]rl\]/ism",'[$1rl=$2]$2[/$1rl]',$s);
$s = preg_replace("/\[([uz])rl=(.*?)\]\[\[uz]rl\]/ism",'[$1rl=$2]$2[/$1rl]',$s);
// protect the recycle symbol from turning into a tag, but without unescaping angles and naked ampersands
$s = str_replace('♲',html_entity_decode('♲',ENT_QUOTES,'UTF-8'),$s);