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
1 changed files with 24 additions and 20 deletions

View File

@ -2188,6 +2188,7 @@ class BBCode
*/
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);
$tagged = [];
@ -2217,6 +2218,9 @@ class BBCode
}
}
return $body;
});
return $body;
}
}