diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c241c627d4ea1..0b0561ff3742d 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11180,7 +11180,7 @@ function getAdvancedPreviewUrl($modulepart, $relativepath, $alldata = 0, $param // old behavior, return a string if ($isAllowedForPreview) { $tmpurl = DOL_URL_ROOT.'/document.php?modulepart='.urlencode($modulepart).'&attachment=0&file='.urlencode($relativepath).($param ? '&'.$param : ''); - $title = $langs->trans("Preview"); + $title = $langs->transnoentities("Preview"); //$title = '%27-alert(document.domain)-%27'; //$tmpurl = 'file='.urlencode("'-alert(document.domain)-'_small.jpg");