Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I restrict HTML in a form field?

Status
Not open for further replies.
what do you mean by
>disable the use of HTML in the form fields

Can you explain what you're trying to do to stop the abuse? QUOTE OF THE DAY
Not to know if bad; not to wish to know is worse.
<%
Jr Clown
%>
 
i'm tring to make it so that that tags don't work... if you type &quot;<b>&quot;, it shows up as being bold.. i just want it to show up as &quot;<b>&quot;...
 
Hi,

I think you are referring to &quot;Message&quot; field (in the link you gave). Instead of presenting the text as we typed, present it as the Server.HTMLEncode(<typed text>). Thus all &quot;<&quot; and &quot;>&quot; will be converted to &quot;&lt;&quot; and &quot;&gt;&quot;, respectively.

Regards,
Luís Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top