Fix Pay-Button url preview (#2397)

* Fix #2396

Adresses #2396 by creating a new element and setting the url as text rather as html.

* Fix closing tag
This commit is contained in:
Patrick
2021-03-26 08:37:15 +01:00
committed by GitHub
parent 068cfe5e3e
commit b4e15cb27f

View File

@@ -197,7 +197,8 @@ function inputChanges(event, buttonSize) {
}
});
url = url.href;
$("#preview-link").html(`<a href="${url}">${url}</a>`)
$("#preview-link").empty().append($('<a></a>').text(url).attr('href', url));
$('pre code').each(function (i, block) {
hljs.highlightBlock(block);