fix tag escape

This commit is contained in:
wangjiacai 2023-04-03 23:54:25 +08:00
parent c0814c4b42
commit f4bd302e9d

View File

@ -53,11 +53,11 @@
li.style.marginBottom = "20px"
if (msg.response == "" && msg.request != "") {
li.style.textAlign = "right"
pre.innerHTML = msg.request
pre.innerText = msg.request
pre.style.backgroundColor = "lightblue"
} else if (msg.request != "") {
li.style.textAlign = "left"
pre.innerHTML = msg.response
pre.innerText = msg.response
pre.style.backgroundColor = "lightgreen"
}
pre.style.borderRadius = "10px"
@ -84,7 +84,7 @@
li.appendChild(pre)
li.style.textAlign="right"
li.style.marginBottom="20px"
pre.innerHTML=data.msg
pre.innerText=data.msg
pre.style.backgroundColor="lightblue"
pre.style.borderRadius="10px"
pre.style.padding="5px"