change reply text to a multiline string

This commit is contained in:
Mystikfluu 2022-06-24 21:42:04 +02:00
parent 4b22c554f3
commit 4c1aecf78e

View File

@ -105,7 +105,7 @@ async function createPost(username,text,time,specialtext,postid,isbot) {
}
newP.appendChild(spacerTextNode())
// |\>.</|
newP.innerHTML += `<button onclick="reply('${username}',${postid},'${htmlesc(htmlesc(text))}')">Reply to this Post</button>`
newP.innerHTML += `<button onclick="reply('${username}',${postid},\`${htmlesc(htmlesc(text))}\`)">Reply to this Post</button>`
newDiv.appendChild(newP)
newDiv.innerHTML += filterPost(text)