|
|
Typepad feeds with blog entries exported from Flickr usually include a
<style> tag. Feedparser strips out the opening and closing tags correctly,
but not the CSS in-between, and the resulting CSS spills into the text.
The quick and simple option is to just strip out everything in-between
style tags.
A second option would be to use the style attribute sanitizing code on the
tag content, but this would allow a feed to influence other feeds'
presentation on pages that have more than one feed aggregated in a single
HTML page.
The fix is quite simple: just add style to
_HTMLSanitizer.unacceptable_elements_with_end_tag
|