Closed floort closed 9 years ago
Would this be solved with a try catch block around it? That simply "pass" ignores the error for broken HTML?
That would work, I think. After all, new newsletters are the only ones that use this feature. Older newsletters could just as easily pass through unprocessed.
Obviously be careful to only catch the XMLSyntaxError and not other errors.
Ok so it would look like try: result = inline_css(result) except XMLSyntaxError: pass # bad luck
Floor can you try this fix?
The line "result = inline_css(result)" in models.py throws a XMLSyntaxError. Lots of old mailings have broken html.