diff --git a/bleach/html5lib_shim.py b/bleach/html5lib_shim.py index 25e3e955..169c4027 100644 --- a/bleach/html5lib_shim.py +++ b/bleach/html5lib_shim.py @@ -376,7 +376,12 @@ def __init__(self, tags, strip, consume_entities, **kwargs): self.consume_entities = consume_entities super(BleachHTMLParser, self).__init__(**kwargs) - def _parse(self, stream, innerHTML=False, container='div', scripting=False, **kwargs): + def _parse(self, stream, innerHTML=False, container='div', scripting=True, **kwargs): + # set scripting=True to parse