fix html weirdness
This commit is contained in:
parent
7e0eb8cbde
commit
425bbff5a0
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
@ -84,14 +84,15 @@ async function inviteres(req,res){
|
||||||
return JSON.stringify(s);
|
return JSON.stringify(s);
|
||||||
}
|
}
|
||||||
html=`
|
html=`
|
||||||
<body>
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>${htmlEnc(title)}</title>
|
<title>${htmlEnc(title)}</title>
|
||||||
<meta content=${strEscape(title)} property="og:title" />
|
<meta content=${strEscape(title)} property="og:title" />
|
||||||
<meta content=${strEscape(description)} property="og:description" />
|
<meta content=${strEscape(description)} property="og:description" />
|
||||||
<meta content=${strEscape(icon)} property="og:image" />
|
<meta content=${strEscape(icon)} property="og:image" />
|
||||||
</head>
|
</head>
|
||||||
</body>
|
</html>
|
||||||
`
|
`
|
||||||
res.type('html');
|
res.type('html');
|
||||||
res.send(html);
|
res.send(html);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue