HTML ENCODE & DECODE
- by Zerotoinfinite
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.