I would like to save some text to my database which can be entered by the client with PHP and MySQL. Lets say I have a textarea and I want to save the exact layout, how the client entered the text.
By exact layout I mean:
- Exact spaces
- Exact linebreaks
After that I want to display it to them in the same format. Of course any HTML JS tags will be wiped out when we're outputting the text.