fix html weirdness

This commit is contained in:
MathMan05 2024-08-15 17:10:27 -05:00
parent 7e0eb8cbde
commit 425bbff5a0

View file

@ -84,14 +84,15 @@ async function inviteres(req,res){
return JSON.stringify(s);
}
html=`
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<title>${htmlEnc(title)}</title>
<meta content=${strEscape(title)} property="og:title" />
<meta content=${strEscape(description)} property="og:description" />
<meta content=${strEscape(icon)} property="og:image" />
</head>
</body>
</html>
`
res.type('html');
res.send(html);