mirror of
https://github.com/friendica/friendica
synced 2025-04-28 17:04:23 +02:00
Escape BBCode tag parsing avoidance tags when processing abstracts
- Improve documentation for related methods
This commit is contained in:
parent
25876099ce
commit
510dacf4df
2 changed files with 20 additions and 23 deletions
|
@ -485,9 +485,8 @@ class Strings
|
|||
* @param string $regex
|
||||
* @param callable $callback
|
||||
* @return string
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function performWithEscapedBlocks(string $text, string $regex, callable $callback)
|
||||
public static function performWithEscapedBlocks(string $text, string $regex, callable $callback): string
|
||||
{
|
||||
// Enables nested use
|
||||
$executionId = random_int(PHP_INT_MAX / 10, PHP_INT_MAX);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue