diff options
author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-05-14 08:25:41 +0300 |
---|---|---|
committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-05-14 08:25:41 +0300 |
commit | b7dbb0ea0ec6031d3cd1747e455aed73f2f96ff1 (patch) | |
tree | 0ccc99c11b0230d83c882ba3554944288ad51ea6 | |
parent | cf5b2d59b290a86a9390a685bfcfb584346f0282 (diff) |
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
-rw-r--r-- | layouts/partials/footer.html | 6 |
1 files 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); } |