diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php
index d7e218a56a1..47cc741fb22 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -330,13 +330,13 @@ if ($id > 0 || !empty($ref)) {
print '
';
print '| '.$productstatic->getNomUrl(1, 'composition').' | ';
- print ''.$productstatic->label.' | ';
- print ''.$value['qty'].' | ';
+ print ''.dol_escape_htmltag($productstatic->label).' | ';
+ print ''.dol_escape_htmltag($value['qty']).' | ';
print '
';
}
} else {
print '';
- print '| '.$langs->trans("None").' | ';
+ print ''.$langs->trans("None").' | ';
print '
';
}
print '';
@@ -571,7 +571,7 @@ if ($id > 0 || !empty($ref)) {
}
print '';
- print '| '.$langs->trans("None").' | ';
+ print ''.$langs->trans("None").' | ';
print '
';
}