My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 12: [ 1615527 ] styles tags are not stripped or sanitized correctly
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  pilgrim
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by pilgrim, Apr 19, 2007
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
Sign in to add a comment

Hosted by Google Code