Skip to content

Commit

Permalink
Swap ordering of truncating and escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
j433866 committed Jan 31, 2019
1 parent 8b44927 commit 74a22bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/OutputWaiter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class OutputWaiter {
*/
showMagicButton(opSequence, result, recipeConfig) {
const magicButton = document.getElementById("magic");
magicButton.setAttribute("data-original-title", `<i>${opSequence}</i> will produce <span class="data-text">"${Utils.truncate(Utils.escapeHtml(result), 30)}"</span>`);
magicButton.setAttribute("data-original-title", `<i>${opSequence}</i> will produce <span class="data-text">"${Utils.escapeHtml(Utils.truncate(result), 30)}"</span>`);
magicButton.setAttribute("data-recipe", JSON.stringify(recipeConfig), null, "");
magicButton.classList.remove("hidden");
}
Expand Down

0 comments on commit 74a22bc

Please sign in to comment.