Skip to content

Commit

Permalink
Add a comment on allowing iframe in parsed entries
Browse files Browse the repository at this point in the history
  • Loading branch information
passiomatic committed Jul 26, 2023
1 parent 70085d1 commit d66a934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coldsweat/markup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@

from html.parser import HTMLParser
import urllib.parse as urlparse
from feedparser.sanitizer import _HTMLSanitizer
# from flask import current_app as app
import markupsafe

HTML_RESERVED_CHARREFS = 38, 60, 62, 34
HTML_RESERVED_ENTITIES = 'amp', 'lt', 'gt', 'quot'


# Allow iframe elements in FeedParser
#_HTMLSanitizer.acceptable_elements.add("iframe")

def _normalize_attrs(attrs):
'''
Normalize certain attribute values
Expand Down

0 comments on commit d66a934

Please sign in to comment.