Conserver les tags html dans les libellés
This commit is contained in:
parent
3d966e4bf6
commit
061fb13e5d
1 changed files with 4 additions and 1 deletions
|
|
@ -9,7 +9,10 @@ f(['id' => 'required|numeric']);
|
||||||
$id = (int) qg('id');
|
$id = (int) qg('id');
|
||||||
$sign_tag = UserTemplate\Functions::signature();
|
$sign_tag = UserTemplate\Functions::signature();
|
||||||
$h = static function ($value): string {
|
$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 {
|
$br = static function ($value) use ($h): string {
|
||||||
return nl2br($h($value));
|
return nl2br($h($value));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue