I am facing a bit of a quandary, I need to replace a new line with <br />
. Now, clearly, replacing all instances of
did not work, as the page did not have proper linebreaks. Here is an example of some possible text:
Some text
More text
Now, this is an issue because there is no
and I have no way to auto-insert <br />
. How can I ensure that this contains proper linebreaks?
This is in PHP. I cannot serve it as plain text.