Browse Source

Use innerText instead of innerHTML

Brendan Abolivier 4 years ago
parent
commit
ebfcbbff9c
1 changed files with 2 additions and 1 deletions
  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>