remove javascript tag + events

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

remove javascript tag + events

Post by jmut »

Hi,
Does someone have (and is willing) to share regexp that will match all javascript tags + on_events.
I want to strip all those, since I am trying to validate tinyMCE and I don't want any client side scripting available.
Yes, I know I can configure tinyMCE somehow but it will take longer time I guess + it's not secure enough.
I searched the forum couldn't find anything.
Would have done it myself but have absolutely no time right now :( (as guess most of you)
Many thanks to all that help on this.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

here's a start: viewtopic.php?t=25494

that can be found via the Useful Posts Thread
Post Reply