diff --git a/static/js/relearn.js b/static/js/relearn.js index e80c976b00..7362f91873 100644 --- a/static/js/relearn.js +++ b/static/js/relearn.js @@ -510,10 +510,8 @@ jQuery(function() { var element = $(this); var url = encodeURI(document.location.origin + document.location.pathname); var link = url + "#"+element[0].id; - return " " + - "" + - "" - ; + var html = " " + $( "" ).addClass("anchor").attr("data-clipboard-text", link).append("").get(0).outerHTML; + return html; }); $(".anchor").on('mouseleave', function(e) {