Skip to content

Commit

Permalink
sanitizer: update img
Browse files Browse the repository at this point in the history
  • Loading branch information
Batorian committed Sep 12, 2024
1 parent 8edd190 commit 43e5ea4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/screens/reader/utils/sanitizeChapterText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,7 @@ export const sanitizeChapterText = (html: string): string => {
allowedAttributes: {
'a': ['href', 'name', 'target', 'class', 'id'],
'div': ['class', 'id', 'style'],
'img': [
'src',
'srcset',
'alt',
'title',
'width',
'height',
'loading',
'class',
'id',
],
'img': ['src', 'srcset', 'alt', 'title', 'class', 'id'],
'ol': ['reversed', 'start'],
'p': ['class', 'id', 'style'],
'span': ['class', 'id', 'style'],
Expand Down

0 comments on commit 43e5ea4

Please sign in to comment.