From 00b755efbf31e8ecc07085e562c7effebeed951c Mon Sep 17 00:00:00 2001 From: Erwan Kessler <45232488+erwan-kessler@users.noreply.github.com> Date: Wed, 2 Sep 2020 10:40:20 +0200 Subject: [PATCH] Update index.js --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 3a31efd..50a6bae 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -19,7 +19,7 @@ var $sitehead = $('#site-head'); }, 1000); } function srcToAnchorWithTitle (str) { - var $el = $('#' + str); + var $el = $('#' + str.replace("'","\\\'")); if ($el.length) { srcTo($el); }