views:

91

answers:

0

Hi All,

I am looking for a HTML editor, and I found many links through google like this

http://online-html-editor.org/

Now I have written something on it: Let say the below content

<div>                                                           <span style="font-weight: bold; font-size: 12pt; "> Heading</span></div>
<div><br />
  </div> The'la;skdlajlsdjansdkahskdkhaksdhkhaskdhkhaskhdkashdkhaksda
<div>asdljalsjdljalsdjljalsdjljalsdjljalsdlajs;fl'ajduyasdahsldjkagsdhasvdjyhlasjdgklastgians,dkasjdlhakhsdl</div>
<div>amsdka;sdlyasdalshdlj,asdh,asdjg,absdlasd/.malskdla'slduljds,vaskkd;jas;dl'asldu'alsdaskd;lk'as;d</div>
<div>'a</div>
<div>sd;jasldj;asdaklsdka'sld'sai'dkabskdm;;lsidaasfhdlasjd;ljaspodi;ajsd;lka'sld</div>
<div>'</div>
<div>ad'</div>
<div>a;fj;ljas;dfjalshdoiauslkfdnkasfnlka's;dkap[sd'alsd;jlaksfdkajsdfh;alsd;</div>
<div>asdkasjd;kaskd;as;dk;aksd;ajsdlkjalksjdlasjdkgasfkjashdjashdkasfdkjashkdasdjo[uipuhlkasdjlkajsdljalsjdlkajsdljaljsdljalsjdlkaslkjdlkasdjlasjdlkjaslkdjlasjdlasudqpeohw09iqwpekjqwehlj</div>
<div><br />
  </div>
<div>
  <div> bool tt = new bool();</div>
  <div>        if (txtStatus.Text == "true")</div>
  <div>            tt = true;</div>
  <div>        else</div>
  <div>            tt = false;</div>
  <div><br />
    </div>
  <div>   </div></div>

Now I want to save this content into the database and display as a normal text on a page.

While extracting I can use Server.HTMLDecode, but I am facing problem while inserting this html data which I have copied from the sites.

Please help. Thanks in advance.