
function openModal() {
  document.getElementById("recipe-modal").style.display = "block";
}

function closeModal() {
  document.getElementById("recipe-modal").style.display = "none";
}

// Tells the server to delete the recipe.
// Input is a Recipe
function deleteRecipe(recipe) {
  const params = new URLSearchParams();
  params.append('id', recipe.id);
  fetch('/delete-recipe', {method: 'POST', body: params});
}

@@ -335,12 +335,12 @@
 end(
-'id'
+%22id%22
 , re
@@ -357,17 +357,17 @@
   fetch(
-'
+%22
 /delete-
@@ -372,17 +372,17 @@
 e-recipe
-'
+%22
 , %7Bmetho
@@ -388,14 +388,14 @@
 od: 
-'
+%22
 POST
-'
+%22
 , bo

Update user-page.js