Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Dont remove styles

Magnus Müllerdb8601d88a29
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 230241ad0..cc28e2d5d 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -364,9 +364,9 @@ class Controller(Generic[Context]):
import markdownify
if extract_links:
- content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['style', 'script'])
+ content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-')
else:
- content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['a', 'style', 'script'])
+ content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['a'])
# Remove weird positioning artifacts
import re