2
0
forked from Wavyzz/dolibarr

FIX Param keepn must be 1 when dol_escape_htmltag used for textarea

Conflicts:
	htdocs/expensereport/card.php
	htdocs/projet/card.php
	htdocs/public/members/new.php
	htdocs/public/opensurvey/studs.php
This commit is contained in:
Laurent Destailleur
2019-03-15 15:13:28 +01:00
parent 074ba0729a
commit 6f0fbc42c1
6 changed files with 9 additions and 9 deletions

View File

@@ -965,7 +965,7 @@ function dol_escape_js($stringtoescape, $mode=0, $noescapebackslashn=0)
*
* @param string $stringtoescape String to escape
* @param int $keepb 1=Preserve b tags (otherwise, remove them)
* @param int $keepn 1=Preserve \r\n strings (otherwise, replace them with escaped value)
* @param int $keepn 1=Preserve \r\n strings (otherwise, replace them with escaped value). Set to 1 when escaping for a <textarea>.
* @return string Escaped string
* @see dol_string_nohtmltag, dol_string_nospecial, dol_string_unaccent
*/