you can use a function like nl2br() to convert new line characters to line breaks in HTML. you could also make a function that formats your text, so that you might be able to add something similar to bbcode to your own website.