This is one of the FAQs suggested by LordShryku in Echo Longue 😃
anyway "\n" = newline for PHP not for HTML
replace this with <br>
// Read the text file
$content = file_get_contents("public_html/text/content.txt");
// Replace PHP new line with HTML <br>
$content = str_replace("\n", "<br>", $content);
// Print the contents of the text file
print '<p>' . trim ($content) . '</p>';
Have Fun!
TommYNandA