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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent html in textarea

Status
Not open for further replies.

Bramvg

IS-IT--Management
Jan 16, 2001
135
BE
Hi,

how can I prevent users from filling out HTML in a textarea. I don't care if it's checked with a javascript or with coldfusion on the 'next" page -> form action=page.cfm

Thank you in advance
bram
 
Download the cf_tagstrippersrc from devex at macromedia. Work just fine!
 
Alternatively, you could use the following regular expression to strip anything between angle brackets:

<cfset form.mytextarea = rereplace(form.mytextarea,&quot;<[^>]*>&quot;,&quot;&quot;,&quot;all&quot;)>

jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top