[Django]-How do you remove html tags using Universal Feed Parser?

6👍

i took a quick look over the code and i don’t think there is a way to overwrite them directly. But you can overwrite feedparser._HTMLSanitizer.acceptable_elements, the list of tags that wont get removed before doing feedparser.parse

Leave a comment