HTML ENCODE & DECODE

Posted by Zerotoinfinite on Stack Overflow See other posts from Stack Overflow or by Zerotoinfinite
Published on 2010-04-17T21:26:59Z Indexed on 2010/04/17 21:33 UTC
Read the original article Hit count: 589

Filed under:
|

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

Heading


The'la;skdlajlsdjansdkahskdkhaksdhkhaskdhkhaskhdkashdkhaksda

asdljalsjdljalsdjljalsdjljalsdjljalsdlajs;fl'ajduyasdahsldjkagsdhasvdjyhlasjdgklastgians,dkasjdlhakhsdl amsdka;sdlyasdalshdlj,asdh,asdjg,absdlasd/.malskdla'slduljds,vaskkd;jas;dl'asldu'alsdaskd;lk'as;d 'a sd;jasldj;asdaklsdka'sld'sai'dkabskdm;;lsidaasfhdlasjd;ljaspodi;ajsd;lka'sld ' ad' a;fj;ljas;dfjalshdoiauslkfdnkasfnlka's;dkap[sd'alsd;jlaksfdkajsdfh;alsd; asdkasjd;kaskd;as;dk;aksd;ajsdlkjalksjdlasjdkgasfkjashdjashdkasfdkjashkdasdjo[uipuhlkasdjlkajsdljalsjdlkajsdljaljsdljalsjdlkaslkjdlkasdjlasjdlkjaslkdjlasjdlasudqpeohw09iqwpekjqwehlj
bool tt = new bool(); if (txtStatus.Text == "true") tt = true; else tt = false;

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.

© Stack Overflow or respective owner

Related posts about html

Related posts about html-encode