diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
index 4d00917373..04ed3f0dc3 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
@@ -1348,15 +1348,15 @@
[% IF Koha.Preference('URLLinkText') %]
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
[% IF Koha.Preference("OPACURLOpenInNewWindow") %]
- [% Koha.Preference('URLLinkText') %]
+ [% Koha.Preference('URLLinkText') | html %]
[% ELSE %]
- [% Koha.Preference('URLLinkText') %]
+ [% Koha.Preference('URLLinkText') | html %]
[% END %]
[% ELSE %]
[% IF Koha.Preference("OPACURLOpenInNewWindow") %]
- [% Koha.Preference('URLLinkText') %]
+ [% Koha.Preference('URLLinkText') | html %]
[% ELSE %]
- [% Koha.Preference('URLLinkText') %]
+ [% Koha.Preference('URLLinkText') | html %]
[% END %]
[% END %]
[% ELSE %]