escaping even more to finally get rid of this stupid error
This commit is contained in:
parent
8272eb1230
commit
ad30ba5ba8
@ -105,7 +105,7 @@ async function createPost(username,text,time,specialtext,postid,isbot) {
|
|||||||
}
|
}
|
||||||
newP.appendChild(spacerTextNode())
|
newP.appendChild(spacerTextNode())
|
||||||
// |\>.</|
|
// |\>.</|
|
||||||
newP.innerHTML += `<button onclick="reply('${username}',${postid},'${htmlesc(text).replace("'","\\\\'")}')">Reply to this Post</button>`
|
newP.innerHTML += `<button onclick="reply('${username}',${postid},'${htmlesc(htmlesc(text).replace("'","\\\\'"))}')">Reply to this Post</button>`
|
||||||
|
|
||||||
newDiv.appendChild(newP)
|
newDiv.appendChild(newP)
|
||||||
newDiv.innerHTML += filterPost(text)
|
newDiv.innerHTML += filterPost(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user