From 9e531590602703d012196c5951f88e9fd784eb77 Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Mon, 9 Aug 2021 18:25:55 +0100 Subject: [PATCH] Convert title to html special entities using jquery --- scholia/app/templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scholia/app/templates/base.html b/scholia/app/templates/base.html index e10d46137..869e113fb 100644 --- a/scholia/app/templates/base.html +++ b/scholia/app/templates/base.html @@ -66,9 +66,9 @@ {% if request.path.endswith("curation") or request.path.endswith("curation/") %} var linkedToFrom = "

"; - linkedToFrom += "Recent changes to items that link to " + title + " and "; + linkedToFrom += "Recent changes to items that link to " + $('

').text(title).html() + " and "; linkedToFrom += ""; - linkedToFrom += "recent changes to items that link from " + title + ".

"; + linkedToFrom += "recent changes to items that link from " + $('
').text(title).html() + ".

"; $(linkedToFrom).insertAfter('h1:first');