diff --git a/inc/page.php b/inc/page.php
index 6e714ae..1bea6b5 100644
--- a/inc/page.php
+++ b/inc/page.php
@@ -319,8 +319,8 @@ class Page {
$text = preg_replace("/(?i)(\x{00a7}|&)[0-9A-FK-OR]/u", "", $text);
}
$text = htmlspecialchars($text, ENT_QUOTES);
- if (strstr($text, "\n")) {
- $text = preg_replace("/\n/", "
", $text);
+ if (strstr($text, "\\n")) {
+ $text = preg_replace("/\\\\n/", "
", $text);
}
return $text;
}