chore: filter the onerror for img.

This commit is contained in:
Yufan Sheng 2024-06-17 03:54:38 +08:00
parent 4eece69fb8
commit 177cade648
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B

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,
}), }),
]); ]);