#NEWLINE# def _has_sneaky_javascript( self , style ) : #NEWLINE# #INDENT# '\n        Depending on the browser, stuff like ``e x p r e s s i o n(...)``\n        can get interpreted, or ``expre/* stuff */ssion(...)``.  This\n        checks for attempt to do stuff like this.\n\n        Typically the response will be to kill the entire style; if you\n        have just a bit of Javascript in the style another rule will catch\n        that and remove only the Javascript from the style; this catches\n        more sneaky attempts.\n        ' #NEWLINE# style = self . _substitute_comments ( '' , style ) #NEWLINE# style = style . replace ( '\\' , '' ) #NEWLINE# style = _substitute_whitespace ( '' , style ) #NEWLINE# style = style . lower ( ) #NEWLINE# if ( 'javascript:' in style ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( 'expression(' in style ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False