From 16d20b38f456334c5966498c035b4c6357637e10 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 6 Dec 2022 16:11:25 +0800 Subject: [PATCH] fix(web): allow width attr --- web/app/models/HTML.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/models/HTML.php b/web/app/models/HTML.php index 6fbb6b3..537a8e0 100644 --- a/web/app/models/HTML.php +++ b/web/app/models/HTML.php @@ -437,6 +437,7 @@ class HTML { $extra_allowed_html = [ 'span' => ['data-realname' => 'Text', 'data-uoj-username' => 'Number'], + 'img' => ['width' => 'Text'], ]; foreach ($extra_allowed_html as $element => $attributes) {