From b7dbb0ea0ec6031d3cd1747e455aed73f2f96ff1 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 14 May 2022 10:55:41 +0530 Subject: [PATCH] Use innerHTML instead of innerText in Code Copy strings so that users willing to use a svg inplace of already existing text can update the i18n strings and get an svg in place --- layouts/partials/footer.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d76058f8..ae02d99a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -91,12 +91,12 @@ const copybutton = document.createElement('button'); copybutton.classList.add('copy-code'); - copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}'; + copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}'; function copyingDone() { - copybutton.innerText = '{{- i18n "code_copied" | default "copied!" }}'; + copybutton.innerHTML = '{{- i18n "code_copied" | default "copied!" }}'; setTimeout(() => { - copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}'; + copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}'; }, 2000); }