| @@ -41,9 +41,11 @@ | ||
| 41 | 41 | // Callback (not a replacement string) so user text containing |
| 42 | 42 | // $1 / \1 / $0 is spliced literally, not parsed as a backref. |
| 43 | 43 | $newInner = preg_replace_callback( |
| 44 | 44 | '/(<p\b[^>]*>)(.*?)(<\/p>)/is', |
| 45 | - static fn ($m) => $m[1] . $escaped . $m[3], | |
| 45 | + static function ($m) use ($escaped) { | |
| 46 | + return $m[1] . $escaped . $m[3]; | |
| 47 | + }, | |
| 46 | 48 | $existing, |
| 47 | 49 | 1 |
| 48 | 50 | ); |
| 49 | 51 | } else { |