Explorar el Código

Use innerText instead of innerHTML

Brendan Abolivier hace 4 años
padre
commit
ebfcbbff9c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      synapse/res/templates/saml_error.html

+ 2 - 1
synapse/res/templates/saml_error.html

@@ -37,7 +37,8 @@
         // to print one.
         let errorDesc = new URLSearchParams(searchStr).get("error_description")
         if (errorDesc) {
-            document.getElementById("errormsg").innerHTML = ` ("${errorDesc}")`;
+
+            document.getElementById("errormsg").innerText = ` ("${errorDesc}")`;
         }
     </script>
 </body>