mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at remove-hackfix 21 lines 571 B view raw
1import escapeHTML from 'escape-html' 2 3export function linkRedirectContents(link: string): string { 4 return ` 5 <html> 6 <head> 7 <meta http-equiv="refresh" content="0; URL='${escapeHTML(link)}'" /> 8 <meta 9 http-equiv="Cache-Control" 10 content="no-store, no-cache, must-revalidate, max-age=0" /> 11 <meta http-equiv="Pragma" content="no-cache" /> 12 <meta http-equiv="Expires" content="0" /> 13 <style> 14 :root { 15 color-scheme: light dark; 16 } 17 </style> 18 </head> 19 </html> 20 ` 21}