aboutsummaryrefslogtreecommitdiffstats
path: root/include/markdown.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-08-23 23:58:07 +0200
committerMax Kostikov <max@kostikov.co>2019-08-23 23:58:07 +0200
commit60919488f17ded7bcd1dd48429baaca530475161 (patch)
tree67ca1b1156de871516946c05540981a06c9f160a /include/markdown.php
parent58d7c7f6aed50d8b40334c011490b1b26eee4ede (diff)
downloadvolse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.tar.gz
volse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.tar.bz2
volse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.zip
Better spoiler BBcode tag conversion to Markdown
Diffstat (limited to 'include/markdown.php')
-rw-r--r--include/markdown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/markdown.php b/include/markdown.php
index 0a8076799..213986867 100644
--- a/include/markdown.php
+++ b/include/markdown.php
@@ -266,7 +266,7 @@ function bb_to_markdown($Text, $options = []) {
$Text = preg_replace("/\[zrl\=\].*?\[\/zrl\]/is", "", $Text);
// Remove unprocessed spoiler HTML tags
- $Text = strip_tags(preg_replace("/(<\/div>)(>.+)$/im", "$1\n$2", $Text));
+ $Text = preg_replace("/<div.+>([^<]+)<.+>(>.+)$/im", "$1\n$2", $Text);
$Text = trim($Text);