Dipesh Tare

Dipesh Tare

  • NA
  • 101
  • 31.9k

Mail formated string getting Html tags

Nov 20 2015 1:19 AM
Hi All,
 
May be the topic name is not understandable, but I am explaining here what i want exactly.
 
I am storing the text from CK editor to database as below code in vb.net :-
 
strbody = CKEditor1.Text
temp.TempEbody = Server.HtmlEncode(strbody) 
 
it is storing as : 
 
<p>
Testing Html encodingTesting Htm</p>
<p>
l encodingTesting Html encodingTesting</p>
<p>
Html encodingTesting Html encodingTesting H</p>
<p>
tml encodingTesting Html encodingTesting Html</p>
<p>
encodingTesting Html encodingTesting Ht</p>
<p>
ml encodingTesting Html encoding</p>
 
and when I am fetching the same text and want to send over the mail it is sending with the html tags.
 
Can anyone suggest the solution?
 
Thanks

Answers (4)