diff --git a/libs/blocks/preflight/panels/seo.js b/libs/blocks/preflight/panels/seo.js index a2cf70f3b2..c04c2899cd 100644 --- a/libs/blocks/preflight/panels/seo.js +++ b/libs/blocks/preflight/panels/seo.js @@ -127,7 +127,8 @@ async function checkBody() { async function checkLorem() { const result = { ...loremResult.value }; const { innerHTML } = document.documentElement; - if (innerHTML.includes('Lorem ipsum')) { + const htmlWithoutPreflight = innerHTML.replace(document.getElementById('preflight')?.outerHTML, ''); + if (htmlWithoutPreflight.includes('Lorem ipsum')) { result.icon = fail; result.description = 'Reason: Lorem ipsum is used on the page.'; } else {