From 061fb13e5dcfedd59b3d1eeda39b0bfe2a88464a Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 2 Jul 2026 18:46:26 +0200 Subject: [PATCH] =?UTF-8?q?Conserver=20les=20tags=20html=20dans=20les=20li?= =?UTF-8?q?bell=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/pdf.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/pdf.php b/admin/pdf.php index 6b32848..49ff41d 100644 --- a/admin/pdf.php +++ b/admin/pdf.php @@ -9,7 +9,10 @@ f(['id' => 'required|numeric']); $id = (int) qg('id'); $sign_tag = UserTemplate\Functions::signature(); $h = static function ($value): string { - return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8'); + return htmlspecialchars_decode( + htmlentities($value, ENT_NOQUOTES, 'UTF-8', false), + ENT_NOQUOTES + ); }; $br = static function ($value) use ($h): string { return nl2br($h($value));