From ccdd6b22945f357931681de922fe228f581e45b4 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 5 May 2020 20:28:10 -0300 Subject: [PATCH] Bug 25279: HTML escape cells This patch makes HTML entities be escaped. It is done in a simple way. We need to explore ways to do it at datatables.js level but it deserves its own bug. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt index 445d839e59..f25a6e8fd0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt @@ -183,6 +183,15 @@ }, 'dom': 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', "order": [[ 1, "asc" ]], + "columnDefs": [ { + "targets": [0,1,2,3,4], + "render": function (data, type, row, meta) { + if ( type == 'display' ) { + return $('
').text(data).html(); + } + return data; + } + } ], "columns": [ { "data": "city_id", -- 2.26.2