Merge branch 'dev' into 'dev'
Fix spoiler displaying while convert BBcode to markdown See merge request hubzilla/core!1715
This commit is contained in:
commit
cab24836d8
@ -264,6 +264,9 @@ function bb_to_markdown($Text, $options = []) {
|
||||
|
||||
// Remove empty zrl links
|
||||
$Text = preg_replace("/\[zrl\=\].*?\[\/zrl\]/is", "", $Text);
|
||||
|
||||
// Remove unprocessed spoiler HTML tags
|
||||
$Text = strip_tags(preg_replace("/(<\/div>)(>.+)$/im", "$1\n$2", $Text));
|
||||
|
||||
$Text = trim($Text);
|
||||
|
||||
|
Reference in New Issue
Block a user