I have text fields in some forms on my site and I'm trying to find out how to preserve line breaks that users enter (maybe fonts too) so they get displayed properly when retreived from the database and are displayed again. Right now, I strip the tags before anything goes into the database, but that means that anything like:
Line 1
Line 2
Line 3
comes out as Line 1 Line 2 Line 3
How do I preserve their fonts and line breaks while still keeping the security? Or is this possible? Thanks.