chore: filter the onerror for img.

This commit is contained in:
Yufan Sheng 2024-06-17 03:54:38 +08:00
parent f4a216e6cf
commit c3616a73fd
Signed by: syhily
GPG Key ID: DEB186763C308C31

View File

@ -134,6 +134,9 @@ const parseContent = async (content: string): Promise<string> => {
'ol', 'ol',
'li', 'li',
], ],
allowAttributes: {
img: ['src', 'width', 'height', 'rel', 'target'],
},
allowComments: false, allowComments: false,
}), }),
]); ]);