diff --git a/htdocs/eventorganization/conferenceorbooth_list.php b/htdocs/eventorganization/conferenceorbooth_list.php index 1f31690052f..391f02d7c8c 100644 --- a/htdocs/eventorganization/conferenceorbooth_list.php +++ b/htdocs/eventorganization/conferenceorbooth_list.php @@ -403,7 +403,7 @@ if ($projectid > 0) { // Description print '
| '.$langs->trans("Description").' | '; -print nl2br($object->description); +print dol_htmlentitiesbr($object->description); print ' | '; // Categories diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 2ba3f329ac2..f15d5f019ba 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -648,7 +648,7 @@ if ($id > 0 || !empty($ref)) { // Description print ''.$langs->trans("Description").' | '; - print nl2br($object->description); + print dol_htmlentitiesbr($object->description); print ' | '; // Categories diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index d97dee9a11b..b98e9298732 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -1038,7 +1038,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser // Description print ''.$langs->trans("Description").' | '; - print nl2br($projectstatic->description); + print dol_htmlentitiesbr($projectstatic->description); print ' | '; // Categories