Skip to content

Commit

Permalink
Merge pull request #3874 from evarisk-francois/fix_odt_ticket_document
Browse files Browse the repository at this point in the history
#3865 [ODT] fix: sanitize br for ticket document event content
  • Loading branch information
nicolas-eoxia authored May 6, 2024
2 parents 1e7b756 + 7a1934e commit 52e6044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function fillTagsLines(Odf $odfHandler, Translate $outputLangs, array $mo
$tmpArray['user'] = dol_strtoupper($userTmp->lastname) . ' ' . ucfirst($userTmp->firstname);
$tmpArray['type'] = $outputLangs->transnoentities('Action' . $actionComm->type_code);
$tmpArray['title'] = $actionComm->label;
$tmpArray['event_content'] = dol_htmlentitiesbr_decode(strip_tags($actionComm->note, '<br>'));
$tmpArray['event_content'] = dol_htmlentitiesbr_decode(str_replace('</br>', "\r\n", $actionComm->note));
$tmpArray['date'] = dol_print_date($actionComm->datec, 'dayreduceformat');

$this->setTmpArrayVars($tmpArray, $listLines, $outputLangs);
Expand Down

0 comments on commit 52e6044

Please sign in to comment.