diff options
author | Max Kostikov <max@kostikov.co> | 2019-08-23 23:58:07 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-08-23 23:58:07 +0200 |
commit | 60919488f17ded7bcd1dd48429baaca530475161 (patch) | |
tree | 67ca1b1156de871516946c05540981a06c9f160a /include | |
parent | 58d7c7f6aed50d8b40334c011490b1b26eee4ede (diff) | |
download | volse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.tar.gz volse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.tar.bz2 volse-hubzilla-60919488f17ded7bcd1dd48429baaca530475161.zip |
Better spoiler BBcode tag conversion to Markdown
Diffstat (limited to 'include')
-rw-r--r-- | include/markdown.php | 2 |
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); |