From 60aa1e631739dd17e7b3fbe3b18f41a4f017f20b Mon Sep 17 00:00:00 2001 From: zsloan Date: Sat, 20 Jul 2024 16:23:22 +0000 Subject: Stop using the escape function for descriptions on the search result page Apparently escape is deprecated, and it's also introducing some issues. We may encounter other descriptions with problems as a result of this, but they should be fixed in a different way. --- gn2/wqflask/templates/search_result_page.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/templates/search_result_page.html b/gn2/wqflask/templates/search_result_page.html index aad7fd99..334dbc77 100644 --- a/gn2/wqflask/templates/search_result_page.html +++ b/gn2/wqflask/templates/search_result_page.html @@ -238,9 +238,9 @@ description = data.description.slice(0, 200) + '...' } try { - return decodeURIComponent(escape(description)) + return decodeURIComponent(description) } catch(err){ - return escape(description) + return description } } }, @@ -306,9 +306,9 @@ description = data.description.slice(0, 200) + '...' } try { - return decodeURIComponent(escape(description)) + return decodeURIComponent(description) } catch(err){ - return escape(description) + return description } } }, -- cgit v1.2.3