diff --git a/notebook/static/base/js/utils.js b/notebook/static/base/js/utils.js index b3872ae59..8775a8f79 100644 --- a/notebook/static/base/js/utils.js +++ b/notebook/static/base/js/utils.js @@ -370,7 +370,7 @@ define([ // Locate any URLs and convert them to a anchor tag function autoLinkUrls(txt) { - return txt.replace(/(^|\s)(https?|ftp)(:[^'">\s]+)/gi, + return txt.replace(/(^|\s)(https?|ftp)(:[^'"<>\s]+)/gi, "$1$2$3"); } diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index 600484ba3..161efc115 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -684,7 +684,7 @@ define([ img.addClass('unconfined'); } }); - }; + } var set_width_height = function (img, md, mime) { /**