diff --git a/package.json b/package.json index e735fe6..110ca45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@browserai/browserai", - "version": "2.0.2", + "version": "2.0.3", "private": false, "description": "A library for running AI models directly in the browser", "main": "dist/index.js", diff --git a/src/core/agent/html-cleaner.ts b/src/core/agent/html-cleaner.ts index a4c5de8..1734e30 100644 --- a/src/core/agent/html-cleaner.ts +++ b/src/core/agent/html-cleaner.ts @@ -403,7 +403,7 @@ export class HTMLCleaner { // 3. Skip elements completely if they are not meant for LLM context // (This check might be redundant if tagsToRemove already handled it, but good safety) - const skipElements = ['script', 'style', 'noscript', 'svg', 'canvas', 'iframe', 'footer', 'nav']; // Ensure consistency + const skipElements = ['script', 'style', 'noscript', 'svg', 'canvas', 'iframe']; // Ensure consistency if (skipElements.includes(tagName) && !(tagName === 'script' && includeScripts)) { return ''; }