Well my problem is that a user enters some data into a textarea,which would be stored in db, i need to show the same data from the db as he had entered in his textarea. this could include spaces,tabs, newlines etc..
depending on the format maybe <pre> // your db text here </pre> some times this works?
In case you're wondering, there are pre tags around the example text, there. This forum has some funny ideas about which html tags to escape, which to delete, and which to use.