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));