I have a text area and I want to store the text entered by user in database with html formatting like paragraph break, numbered list. I am using HTMLencode and HTMLdecode fo
This is assuming that you only care about getting the right tags in place. If you want a real formatter you will need a library like Aaronaught suggested.