diff options
author | Mario <mario@mariovavti.com> | 2022-01-09 18:25:17 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-09 18:25:17 +0000 |
commit | b5e4c08fc531cfe057f6ebaa0852b4e89336a181 (patch) | |
tree | 1a8c01943da46a5c15a689340877066cdfdef0aa | |
parent | db39cd8b7c6e715d348270afb0604ef19b2b4fac (diff) | |
download | volse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.tar.gz volse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.tar.bz2 volse-hubzilla-b5e4c08fc531cfe057f6ebaa0852b4e89336a181.zip |
fix get_tags() parsing toc bbcodes
-rw-r--r-- | include/text.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 9c59a9908..666d90838 100644 --- a/include/text.php +++ b/include/text.php @@ -865,6 +865,7 @@ function get_tags($s) { // ignore anything in a code or svg block $s = preg_replace('/\[code(.*?)\](.*?)\[\/code\]/sm','',$s); $s = preg_replace('/\[svg(.*?)\](.*?)\[\/svg\]/sm','',$s); + $s = preg_replace('/\[toc(.*?)\]/sm','',$s); // ignore anything in [style= ] $s = preg_replace('/\[style=(.*?)\]/sm','',$s); |