Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

fix: preserve rowspan/colspan in cleaned_html (#1920)

ntohidi7bfc547bceb3
diff --git a/crawl4ai/config.py b/crawl4ai/config.py
index 9cd02f97..507965af 100644
--- a/crawl4ai/config.py
+++ b/crawl4ai/config.py
@@ -47,7 +47,7 @@ WORD_TOKEN_RATE = 1.3
MIN_WORD_THRESHOLD = 1
IMAGE_DESCRIPTION_MIN_WORD_THRESHOLD = 1
-IMPORTANT_ATTRS = ["src", "href", "alt", "title", "width", "height", "class", "id"]
+IMPORTANT_ATTRS = ["src", "href", "alt", "title", "width", "height", "class", "id", "rowspan", "colspan"]
ONLY_TEXT_ELIGIBLE_TAGS = [
"b",
"i",