I have some text that I have bleached (https://bleach.readthedocs.io/) which includes a limited number of attributes for the element. This has resulted in a lot of empty spans.