mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
do not linkify in nobb and noparse tags - issue #1776
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user