Quote:
Originally Posted by kovidgoyal
beautifulsoup supports arbitrary python functions for matching, or even regexps. Something lke:
Code:
remove_tags=[dict(attrs={'class':re.compile(r'pattern')})]
|
Thanks that works. But for the remove_after I'm getting a problem still - Also
Code:
remove_tags_after = [dict(name=['articleBody'])]
is something wrong w/ that where it wouldn't leave off sections after <section name='articleBody'>?