From 1eeb4a75c60b700647589b4552ac6036163adbd5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 23 Jun 2023 02:29:14 +0200 Subject: [PATCH] Doc --- htdocs/core/lib/functions.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ee41b3a4c92..b864d399cc9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1583,7 +1583,10 @@ function dol_escape_json($stringtoescape) /** * Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input fields. - * When we output string on pages, we use dol_string_onlythesehtmltags(dol_htmlentitiesbr()) for notes, and use dol_escape_htmltag() for simple labels. + * When we output string on pages, we use + * - dol_string_onlythesehtmltags(dol_htmlentitiesbr()) for notes, + * - dol_escape_htmltag() for simple labels. + * - htmlspecialchars( , ENT_COMPAT, 'UTF-8') for passwords * * @param string $stringtoescape String to escape * @param int $keepb 1=Keep b tags, 0=remove them completely