RE: FCKeditor help - strip out script tags...

2006-05-04 Thread Ben Nadel
I am not 100% familiar with the FCK editor (we use the Xstandard editor here... www.xstandard.com)... But my guess would be that in Javascript, you can strip out the tags after you grab the value from the form field that FCK editor saves to... Someone else here can talk about how that happens, but

Re: FCKeditor help - strip out script tags...

2006-05-04 Thread Matt Robertson
Before you commit the form field input, scrub it like this, which assumes your edit field is form.richText cfset form.richText = REReplaceNoCase(form.richText, (SCRIPT[^]*)(.*(/SCRIPT[^]*))?, , ALL) Then do what you will with form.richText (i.e. save it in a db table). [EMAIL PROTECTED]