mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Fix newline rendering
This commit is contained in:
parent
138f146c1f
commit
ad425339b5
@ -319,8 +319,8 @@ class Page {
|
|||||||
$text = preg_replace("/(?i)(\x{00a7}|&)[0-9A-FK-OR]/u", "", $text);
|
$text = preg_replace("/(?i)(\x{00a7}|&)[0-9A-FK-OR]/u", "", $text);
|
||||||
}
|
}
|
||||||
$text = htmlspecialchars($text, ENT_QUOTES);
|
$text = htmlspecialchars($text, ENT_QUOTES);
|
||||||
if (strstr($text, "\n")) {
|
if (strstr($text, "\\n")) {
|
||||||
$text = preg_replace("/\n/", "<br>", $text);
|
$text = preg_replace("/\\\\n/", "<br>", $text);
|
||||||
}
|
}
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user