From b5e4c08fc531cfe057f6ebaa0852b4e89336a181 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 9 Jan 2022 18:25:17 +0000 Subject: fix get_tags() parsing toc bbcodes --- include/text.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/text.php') 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); -- cgit v1.2.3