Add linebreaks to outgoing posts.
rodzic
9a5e980471
commit
5a4352deae
|
@ -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>";
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue