diff --git a/js/privatebin.js b/js/privatebin.js index acaaf65c..0398dbdc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -566,12 +566,11 @@ jQuery.PrivateBin = (function($, RawDeflate) { // if $element is given, apply text to element if ($element !== null) { - // set the last text node of element - let content = $element.contents(); - if (content.length > 1) { - $element.html(' ' + output).prepend(content[0]); - } else { + // avoid HTML entity encoding if translation contains link + if (output.indexOf(' - + diff --git a/tpl/page.php b/tpl/page.php index aab3124c..c6560d2c 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +