diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt
index 1ff0e09c90..e7b3609394 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt
@@ -6,6 +6,7 @@
[% USE ItemTypes %]
[% USE Branches %]
[% USE TablesSettings %]
+[% USE HtmlScrubber %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@@ -126,7 +127,7 @@
[% END %]
[% IF ( course.public_note ) %]
-
Public note: [% course.public_note | $raw %]
+ Public note: [% course.public_note | scrub_html type => 'note' | $raw %]
[% END %]
Student count: [% course.students_count || "0" | html %]
Status: [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]
@@ -297,9 +298,9 @@
[% IF (cr.public_note) %]
- [% cr.public_note | $raw %]
+ [% cr.public_note | scrub_html type => 'note' | $raw %]
[% ELSIF (cr.item.itemnotes) %]
- [% cr.item.itemnotes | $raw %]
+ [% cr.item.itemnotes | scrub_html type => 'note' | $raw %]
[% END %]
|
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
index 3ff982c93d..24e8ba6a40 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
@@ -3,6 +3,7 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE TablesSettings %]
+[% USE HtmlScrubber %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@@ -74,7 +75,7 @@
[% END %]
[% c.staff_note | html %] |
- [% c.public_note | $raw %] |
+ [% c.public_note | scrub_html type => 'note' | $raw %] |
[% c.students_count | html %] |
[% IF c.enabled == 'yes' %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt
index e816979bb3..1c9056645c 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt
@@ -6,6 +6,7 @@
[% USE ItemTypes %]
[% USE Branches %]
[% USE TablesSettings %]
+[% USE HtmlScrubber %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
@@ -54,7 +55,7 @@
[% END %]
- [% IF ( course.public_note ) %]Notes: [% course.public_note | $raw %][% END %]
+ [% IF ( course.public_note ) %]Notes: [% course.public_note | scrub_html type => 'note' | $raw %][% END %]
@@ -99,7 +100,7 @@
| [% cr.issue.date_due | $KohaDates as_due_date => 1 %] |
[% IF ( cr.public_note ) %]
- [% cr.public_note | $raw %]
+ [% cr.public_note | scrub_html type => 'note' | $raw %]
[% ELSIF ( cr.item.itemnotes ) %]
[% cr.item.itemnotes | $raw %]
[% END %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt
index c70172e1b2..04212c0cb1 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt
@@ -6,6 +6,7 @@
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
+[% USE HtmlScrubber %]
[% FILTER collapse %]
[% t("Course reserves") | html %]
@@ -63,7 +64,7 @@
>
[% END %]
|
- [% c.public_note | $raw %] |
+ [% c.public_note | scrub_html type => 'note' | $raw %] |
|
[% END %]