did i change anything
This commit is contained in:
parent
1cc5508506
commit
26d3765073
|
@ -30,9 +30,13 @@ app.get("/channels/:channel", async (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
function sanitize(text) {
|
||||
return text.replaceAll("<", "<").replaceAll(">", ">");
|
||||
}
|
||||
|
||||
function constructMessage(msg) {
|
||||
return `<div>
|
||||
<span>${msg.author.username}</span>: ${msg.content}
|
||||
<span>${sanitize(msg.author.username)}</span>: ${sanitize(msg.content)}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue