diff --git a/BTCPayServer/wwwroot/paybutton/paybutton.js b/BTCPayServer/wwwroot/paybutton/paybutton.js index a6d1e254f..9222215a8 100644 --- a/BTCPayServer/wwwroot/paybutton/paybutton.js +++ b/BTCPayServer/wwwroot/paybutton/paybutton.js @@ -197,7 +197,8 @@ function inputChanges(event, buttonSize) { } }); url = url.href; - $("#preview-link").html(`${url}`) + + $("#preview-link").empty().append($('').text(url).attr('href', url)); $('pre code').each(function (i, block) { hljs.highlightBlock(block);