fix tag escape
This commit is contained in:
parent
c0814c4b42
commit
f4bd302e9d
@ -53,11 +53,11 @@
|
|||||||
li.style.marginBottom = "20px"
|
li.style.marginBottom = "20px"
|
||||||
if (msg.response == "" && msg.request != "") {
|
if (msg.response == "" && msg.request != "") {
|
||||||
li.style.textAlign = "right"
|
li.style.textAlign = "right"
|
||||||
pre.innerHTML = msg.request
|
pre.innerText = msg.request
|
||||||
pre.style.backgroundColor = "lightblue"
|
pre.style.backgroundColor = "lightblue"
|
||||||
} else if (msg.request != "") {
|
} else if (msg.request != "") {
|
||||||
li.style.textAlign = "left"
|
li.style.textAlign = "left"
|
||||||
pre.innerHTML = msg.response
|
pre.innerText = msg.response
|
||||||
pre.style.backgroundColor = "lightgreen"
|
pre.style.backgroundColor = "lightgreen"
|
||||||
}
|
}
|
||||||
pre.style.borderRadius = "10px"
|
pre.style.borderRadius = "10px"
|
||||||
@ -84,7 +84,7 @@
|
|||||||
li.appendChild(pre)
|
li.appendChild(pre)
|
||||||
li.style.textAlign="right"
|
li.style.textAlign="right"
|
||||||
li.style.marginBottom="20px"
|
li.style.marginBottom="20px"
|
||||||
pre.innerHTML=data.msg
|
pre.innerText=data.msg
|
||||||
pre.style.backgroundColor="lightblue"
|
pre.style.backgroundColor="lightblue"
|
||||||
pre.style.borderRadius="10px"
|
pre.style.borderRadius="10px"
|
||||||
pre.style.padding="5px"
|
pre.style.padding="5px"
|
||||||
|
Reference in New Issue
Block a user