I tried to use Server.HtmlEncode to solve this problem, but to find it still doesn't work.
temp=Server.HtmlEncode(content.Text);
I tried to use Server.HtmlEncode to solve this problem, but to find it still doesn't work.
temp=Server.HtmlEncode(content.Text);
How to handle HTML tag info in control?
nitesh_garg
Some people rendered HTML tag to attack website, some others did this for normal purpose.
For those different clients, how to solve this problem
Did i make it clear Thank you for your help in advance!
gafrank
Please clarify your post.
MMS2006
A typical solution for this is to let the users use these brackets: [ and ]. In your code, you can find and replace these brackets with < and >. But only in cases where you would like to allow tags.
Another solution is to make buttons which a user can use to for instance make text bold or italic. In the back, you can mark the text to be made up with a special sign, or just use [ and ] and the replace option.
yeos_lee