XSS fix
This commit is contained in:
parent
7411743481
commit
a7014b48ec
1 changed files with 2 additions and 2 deletions
|
@ -12,11 +12,11 @@ class Phone{
|
||||||
|
|
||||||
let h2 = document.createElement("h2");
|
let h2 = document.createElement("h2");
|
||||||
h2.className = "messageTitle";
|
h2.className = "messageTitle";
|
||||||
h2.innerHTML = message.title;
|
h2.innerText = message.title;
|
||||||
|
|
||||||
let p = document.createElement("p");
|
let p = document.createElement("p");
|
||||||
p.className = "messageContent";
|
p.className = "messageContent";
|
||||||
p.innerHTML = message.content;
|
p.innerText = message.content;
|
||||||
|
|
||||||
msg.appendChild(h2);
|
msg.appendChild(h2);
|
||||||
msg.appendChild(p);
|
msg.appendChild(p);
|
||||||
|
|
Loading…
Reference in a new issue