kopia lustrzana https://github.com/learn-awesome/learndb
preserve body tag
rodzic
7de9f17ec3
commit
d9735112c5
|
@ -20,7 +20,7 @@ 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
|
||||
// Preserve the body tag and its content
|
||||
let body = content.match(/<body.*?>(.*?)<\/body>/i);
|
||||
body = body ? body[1] : '';
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue