Skip to content

Commit af24793

Browse files
author
Drew Hubl
committed
Add text/plain and other image formats to acceptable_content_types
1 parent 6269d7a commit af24793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/sanitizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class HTMLSanitizerMixin(object):
141141
'xmpp', 'callto', 'feed', 'urn', 'aim', 'rsync', 'tag',
142142
'ssh', 'sftp', 'rtsp', 'afs', 'data']
143143

144-
acceptable_content_types = ['image/png']
144+
acceptable_content_types = ['image/png', 'image/jpeg', 'image/gif', 'image/webp', 'image/bmp', 'text/plain']
145145

146146
# subclasses may define their own versions of these constants
147147
allowed_elements = acceptable_elements + mathml_elements + svg_elements

0 commit comments

Comments
 (0)