how to save html code in sql server database for correct display : My website is just like Stackoverflow and under developement. I am using plain textarea to take text input as I do not have any WMD editor like Stackoverflow's. When I take html code as input and store it in database table in a text or nvarchar(max) column, it is stored successfully. But when I call that data for display, it displays the corresponding html page instead of that html code on screen. I am not able to resolve it. For better understanding I'm putting here input page and output page images of my website. First is
[This is image of input page][1]
[1]: http://i.stack.imgur.com/n1b9O.png

and second is

[This is the image of output page][2]

 
  [2]: http://i.stack.imgur.com/wrHCV.png

What is going wrong here ?