app/assets/lookbook/js/components/copy.js in lookbook-0.5.1 vs app/assets/lookbook/js/components/copy.js in lookbook-0.5.2

- old
+ new

@@ -2,10 +2,12 @@ return { get content() { const target = document.getElementById( this.$root.getAttribute("data-target") ); - return (target ? target.innerHTML : "").trim(); + const decoder = document.createElement("textarea"); + decoder.innerHTML = target ? target.innerHTML : ""; + return decoder.value.trim(); }, done: false, async save() { await window.navigator.clipboard.writeText(this.content); this.done = true;