def remove_js_css(content):
 r = re.compile('<script.*?</script>', ((re.I | re.M) | re.S))
 s = r.sub('', content)
 r = re.compile('<style.*?</style>', ((re.I | re.M) | re.S))
 s = r.sub('', s)
 r = re.compile('<!--.*?-->', ((re.I | re.M) | re.S))
 s = r.sub('', s)
 r = re.compile('<meta.*?>', ((re.I | re.M) | re.S))
 s = r.sub('', s)
 r = re.compile('<ins.*?</ins>', ((re.I | re.M) | re.S))
 s = r.sub('', s)
 return s

def remove_js_css ( content ) : r = re . compile ( '<script.*?</script>' , ( ( re . I | re . M ) | re . S ) ) s = r . sub ( '' , content ) r = re . compile ( '<style.*?</style>' , ( ( re . I | re . M ) | re . S ) ) s = r . sub ( '' , s ) r = re . compile ( '<!--.*?-->' , ( ( re . I | re . M ) | re . S ) ) s = r . sub ( '' , s ) r = re . compile ( '<meta.*?>' , ( ( re . I | re . M ) | re . S ) ) s = r . sub ( '' , s ) r = re . compile ( '<ins.*?</ins>' , ( ( re . I | re . M ) | re . S ) ) s = r . sub ( '' , s ) return s
remove the the javascript and the stylesheet and the comment content .