mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Swap ordering of truncating and escaping
This commit is contained in:
parent
8b44927cb6
commit
74a22bcf9c
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ class OutputWaiter {
|
||||||
*/
|
*/
|
||||||
showMagicButton(opSequence, result, recipeConfig) {
|
showMagicButton(opSequence, result, recipeConfig) {
|
||||||
const magicButton = document.getElementById("magic");
|
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.setAttribute("data-recipe", JSON.stringify(recipeConfig), null, "");
|
||||||
magicButton.classList.remove("hidden");
|
magicButton.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue