Add no-parsing block escaping in BBCode::setMentions

This commit is contained in:
Hypolite Petovan 2020-06-10 09:55:52 -04:00
parent eaa7740da6
commit 9b2d758c1a

View file

@ -2188,6 +2188,7 @@ class BBCode
*/ */
public static function setMentions($body, $profile_uid = 0, $network = '') public static function setMentions($body, $profile_uid = 0, $network = '')
{ {
BBCode::performWithEscapedTags($body, ['noparse', 'pre', 'code'], function ($body) use ($profile_uid, $network) {
$tags = BBCode::getTags($body); $tags = BBCode::getTags($body);
$tagged = []; $tagged = [];
@ -2217,6 +2218,9 @@ class BBCode
} }
} }
return $body;
});
return $body; return $body;
} }
} }