/* Get all attribute="javascript:foo()" tags. This is essentially the
* regex /(=|url\()("?)[^>]*script:/ but expanded to catch camouflage
* with spaces and entities. */
- $preg = '/((=|�*61;?|�*3D;?)|' .
+ // The first portion should ensure that CSS data contained within a
+ // 'CDATA' section is not matched.
+ $preg = '/<\s*[^!][^>]*' .
+ '((=|�*61;?|�*3D;?)|' .
'((u|�*85;?|�*55;?|�*117;?|�*75;?|\\\\0*75)\s*' .
'(r|�*82;?|�*52;?|�*114;?|�*72;?|\\\\0*72)\s*' .
'(l|�*76;?|�*4c;?|�*108;?|�*6c;?|\\\\0*6c)\s*' .