Use dolPrintHTML()

This commit is contained in:
Laurent Destailleur 2024-05-15 18:21:50 +02:00
parent 271624de1b
commit 92f6539744
5 changed files with 18 additions and 21 deletions

View file

@ -2068,8 +2068,8 @@ if ($resql) {
// Note public
if (!empty($arrayfields['c.note_public']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_public);
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_public);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;
@ -2079,7 +2079,7 @@ if ($resql) {
// Note private
if (!empty($arrayfields['c.note_private']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_private);
print dolPrintHTML($obj->note_private);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;

View file

@ -2676,8 +2676,8 @@ if ($num > 0) {
}
// Note public
if (!empty($arrayfields['f.note_public']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_public);
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_public);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;
@ -2686,7 +2686,7 @@ if ($num > 0) {
// Note private
if (!empty($arrayfields['f.note_private']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_private);
print dolPrintHTML($obj->note_private);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;

View file

@ -1566,17 +1566,15 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '', $showuserl
// Address - Phone - Email
if (!empty($arrayfields['t.address']['checked'])) {
$addresstoshow = $contactstatic->getBannerAddress('contact', $object);
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag(dol_string_nohtmltag($addresstoshow)).'">';
print '<td class="tdoverflowmax150" title="'.dolPrintHTMLForAttribute($addresstoshow).'">';
print $addresstoshow;
print '</td>';
}
// Note private
if (!empty($arrayfields['t.note_private']['checked'])) {
print '<td>';
if ($obj->note_private) {
print dol_string_nohtmltag($obj->note_private);
}
print '<td class="center">';
print dolPrintHTML($obj->note_private);
print '</td>';
}

View file

@ -955,17 +955,16 @@ while ($i < $imaxinloop) {
}
// Note public
if (!empty($arrayfields['f.note_public']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_public);
print '</td>';
if (!$i) {
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_public);
print '</td>';if (!$i) {
$totalarray['nbfield']++;
}
}
// Note private
if (!empty($arrayfields['f.note_private']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_private);
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_private);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;

View file

@ -2047,8 +2047,8 @@ if ($resql) {
}
// Note public
if (!empty($arrayfields['cf.note_public']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_public);
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_public);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;
@ -2057,8 +2057,8 @@ if ($resql) {
// Note private
if (!empty($arrayfields['cf.note_private']['checked'])) {
print '<td class="center">';
print dol_string_nohtmltag($obj->note_private);
print '<td class="sensiblehtmlcontent center">';
print dolPrintHTML($obj->note_private);
print '</td>';
if (!$i) {
$totalarray['nbfield']++;