Add no-parsing block escaping in BBCode::setMentions
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user