Add no-parsing block escaping in BBCode::setMentions
This commit is contained in:
parent
eaa7740da6
commit
9b2d758c1a
1 changed files with 24 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue