mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- fix escapeTags() failed in PHP 8.1
This commit is contained in:
parent
1fb8c953e7
commit
b6d9114e8e
1 changed files with 3 additions and 0 deletions
|
|
@ -221,6 +221,9 @@ function url_dir($url, $onlyPath = 1)
|
|||
|
||||
function escapeTags($s)
|
||||
{
|
||||
if ($s == '') {
|
||||
return '';
|
||||
}
|
||||
$c1 = chr(1);
|
||||
$c2 = chr(2);
|
||||
$s = preg_replace("~<b>([\s\S]*?)</b>~i", "${c1}b${c2}\$1${c1}/b${c2}", $s);
|
||||
|
|
|
|||
Loading…
Reference in a new issue