Add linebreaks to outgoing posts.

main
Jeff Sikes 2024-02-20 12:25:13 +00:00 zatwierdzone przez Terence Eden
rodzic 9a5e980471
commit 5a4352deae
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -618,6 +618,10 @@ HTML;
}
// Construct HTML breaks from carriage returns and line breaks
$linebreak_patterns = array("\r\n", "\r", "\n"); // Variations of line breaks found in raw text
$content = str_replace($linebreak_patterns, "<br/>", $content);
// Construct the content
$content = "<p>{$content}</p>";