aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2024-07-20 16:23:22 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commit8a12d350bd079b7e102f7f7c1b0a021d8d127d90 (patch)
tree79f76ff27d2cd3064847e1b931c4b0923b113903
parentcde68b91d66d856f3dedcddaf1f38e52bf5485d9 (diff)
downloadgenenetwork2-8a12d350bd079b7e102f7f7c1b0a021d8d127d90.tar.gz
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.
-rw-r--r--gn2/wqflask/templates/search_result_page.html8
1 files changed, 4 insertions, 4 deletions
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
}
}
},