Skip to content

Commit 0936ad2

Browse files
authored
Update sanitizeChapterText.ts
1 parent d43c95f commit 0936ad2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/screens/reader/utils/sanitizeChapterText.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const sanitizeChapterText = (
1111
allowedTags: sanitizeHtml.defaults.allowedTags.concat([
1212
'img',
1313
'i',
14+
'video'
15+
'source'
1416
'em',
1517
'b',
1618
'a',
@@ -30,6 +32,8 @@ export const sanitizeChapterText = (
3032
ol: ['reversed', 'start', 'type'],
3133
p: ['class', 'id'],
3234
span: ['class', 'id'],
35+
video: ['controls', 'width'],
36+
source: ['src', 'type'],
3337
ref: ['href', 'class', 'id'],
3438
},
3539
allowedSchemes: ['data', 'http', 'https', 'file'],

0 commit comments

Comments
 (0)