preserve body tag

pull/76/head
Huda Joad 2023-12-04 23:48:11 +03:00
rodzic 5b3c6578aa
commit 7de9f17ec3
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,9 @@ function simplifyContent(content) {
// Preserve the title tag and its content
let title = content.match(/<title.*?>(.*?)<\/title>/i);
title = title ? title[1] : '';
// Preserve the title tag and its content
let body = content.match(/<body.*?>(.*?)<\/body>/i);
body = body ? body[1] : '';
// Extract the body content, if present
let bodyContent = '';