修复TG一些邮件和图片不显示

This commit is contained in:
eoao
2025-10-23 23:11:00 +08:00
parent d5a5bf8c29
commit 7980e6a444
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ export default function emailHtmlTemplate(html, domain) {
const { document } = parseHTML(html);
document.querySelectorAll('script').forEach(script => script.remove());
html = document.documentElement.outerHTML;
html = document.toString();
html = html.replace(/{{domain}}/g, domainUtils.toOssDomain(domain) + '/');
return `<!DOCTYPE html>