Displaying page
of
pages;
Items to
Title |
Test
Details
Remove all attributes related to event handling from inside HTML tags
|
Expression |
(\s(\bon[a-zA-Z][a-z]+)\s?\=\s?[\'\"]?(javascript\:)?[\w\(\),\' ]*;?[\'\"]?)+
|
Description |
No idea whether anyone would ever need this, but I had to work half a day on this pattern, so I decided to share it. :) It was never meant for productive use at all; it was rather to filter out all that annoying event handling stuff to find a bug in my DHTML table-generating script. Give it a try with this string (see details):
<div id="TSelect_TD_value_911" class="TSel" onpaste="" onblur="TSelectClose(this);" onClick="TSelectOpen(this);" style="width:250px; padding:2px;">
|
Matches |
onPaste onBlur onClick ... ; onblur onclick onpaste ...
|
Non-Matches |
<div id="TSelect_TD_value_911" class="TSel" style="width:250px; padding:2px;">
|
Author |
Rating:
globalplayer
|
Displaying page
of
pages;
Items to