This is a very easy question, however I can't seem to find any functions that are working for me.
I am allowing a user on a site to input (in an admin area) a newsletter to their site (a database). The problem is that they don't have any HTML knowledge, therefore I want the text to look exactly the way they typed it when it is taken out of the db. For instance, when they type ..
hey
hey
hey
.. it displays ..
hey hey hey.
I was able to solve this by using the html <pre> tag when outputting on the site, however I don't like that method. Is there a way I can do it with PHP? htmlentities didn't work.