This commit is contained in:
Laurent Destailleur
2023-06-23 02:29:14 +02:00
parent c6b7e68d4b
commit 1eeb4a75c6

View File

@@ -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