diff options
-rw-r--r-- | app/class/mesg.class.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php index 2e5c9d6..365431c 100644 --- a/app/class/mesg.class.php +++ b/app/class/mesg.class.php @@ -216,8 +216,7 @@ class mesg extends obj } /* - * Format message (if auto generated), and insert HTML linebreaks (<br />) - * at message newlines. + * Format message (if auto generated), and fixup content for display in HTML */ public function renderMesg() : string { @@ -226,7 +225,7 @@ class mesg extends obj else $mesg = $this->mesg; - return nl2br($mesg); + return nl2br(str_replace(" ", " ", $mesg)); } /* |