<script> function gentleSubDeCipher(newAlpha,para) { const alphaNum = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789"; const newAlphaNum = newAlpha; let corpse = document.getElementById(para).textContent; let victim = ""; for (let c = 0; c < corpse.length; c++) { foundIt = newAlphaNum.indexOf(corpse[c]); if (foundIt != -1) { victim = victim + alphaNum[foundIt]; } else { victim = victim + corpse[c]; } } corpse = corpse.replaceAll("&","&"); corpse = corpse.replaceAll('"','"'); corpse = corpse.replaceAll("'","'"); corpse = corpse.replaceAll("<","<"); corpse = corpse.replaceAll(">",">"); document.getElementById(para).textContent=victim; } </script>