Replace html2bbcode calls by HTML::toBBCode
This commit is contained in:
@@ -94,7 +94,7 @@ class Markdown extends BaseObject
|
||||
|
||||
$s = str_replace('#', '#', $s);
|
||||
|
||||
$s = html2bbcode($s);
|
||||
$s = Friendica\Content\Text\HTML::toBBCode($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);
|
||||
|
||||
Reference in New Issue
Block a user