mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-09 00:04:20 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user