How to remove links from HTML completely with Bleach?
14:51 01 Sep 2020

Bleach strips non-whitelisted tags from HTML, but leaves child nodes, e.g.

>>> import bleach
>>> bleach.clean("stays", strip=True, tags=[])
'stays'
>>>  

How can the entire element along with its children be removed?

python html bleach