1
0
mirror of synced 2024-11-28 08:30:48 +01:00

escape only angle brackets

This commit is contained in:
Brunon Blok 2023-04-07 00:59:51 +00:00
parent 6d3ca3f56c
commit 12082ba3cc

View File

@ -396,7 +396,7 @@ class RecipeWaiter {
const item = document.createElement("li");
item.classList.add("operation");
item.innerHTML = Utils.escapeHtml(name);
item.innerHTML = name.replace('>', '&gt;', 'g').replace('<', '&lt;', 'g');
this.buildRecipeOperation(item);
document.getElementById("rec-list").appendChild(item);