diff --git a/project/templates/chat.html b/project/templates/chat.html index 3efdfe9..48c041e 100644 --- a/project/templates/chat.html +++ b/project/templates/chat.html @@ -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"