From 338521197f5de79bafa8f230c692d3efab0da9c1 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 23 May 2019 10:59:50 -0500 Subject: Fixed issue where some descriptions caused an error --- wqflask/wqflask/templates/search_result_page.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index cb43d989..e20ea2d3 100644 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -281,7 +281,11 @@ 'width': "300px", 'data': null, 'render': function(data, type, row, meta) { - return decodeURIComponent(escape(data.description)) + try { + return decodeURIComponent(escape(data.description)) + } catch { + return escape(data.description) + } } }, { -- cgit v1.2.3