From 6753d260e47bddbc61bbfe1fe6d9de384afc2da6 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 4 Jul 2023 08:05:00 +0000 Subject: do not linkify in nobb and noparse tags - issue #1776 --- include/text.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index c038d3d3d..6ab8fc1ce 100644 --- a/include/text.php +++ b/include/text.php @@ -887,6 +887,8 @@ function get_tags($s) { // ignore anything in a code or svg block $s = preg_replace('/\[code(.*?)\](.*?)\[\/code\]/sm','',$s); + $s = preg_replace('/\[nobb\](.*?)\[\/nobb\]/sm','',$s); + $s = preg_replace('/\[noparse\](.*?)\[\/noparse\]/sm','',$s); $s = preg_replace('/\[svg(.*?)\](.*?)\[\/svg\]/sm','',$s); $s = preg_replace('/\[toc(.*?)\]/sm','',$s); -- cgit v1.2.3