diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 3c7e7303581..4c7b85f45ab 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -2596,7 +2596,7 @@ function print_projecttasks_array($db, $form, $socid, $projectsListId, $mytasks
print '
';
print $projectstatic->getNomUrl(1, '', 0, '', '-', 0, -1, 'nowraponall');
if (!in_array('projectlabel', $hiddenfields)) {
- print ' '.dol_trunc($objp->title, 24).'';
+ print ' '.dol_escape_htmltag($objp->title).'';
}
print ' | ';
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index 2698a4b1a21..044728227cf 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -310,7 +310,7 @@ if ($resql) {
$companystatic = new Societe($db); // We need a clean new object for next loop because current one has some properties set.
-
+// List of open projects per thirdparty
$sql = "SELECT COUNT(p.rowid) as nb, SUM(p.opp_amount)";
$sql .= ", s.rowid as socid, s.nom as name, s.name_alias";
$sql .= ", s.code_client, s.code_compta, s.client";