MCPcopy Index your code
hub / github.com/unclecode/crawl4ai / format_html

Function format_html

crawl4ai/utils.py:979–981  ·  view source on GitHub ↗
(html_string)

Source from the content-addressed store, hash-verified

977 return '\n'.join(lines)
978
979def format_html(html_string):
980 soup = BeautifulSoup(html_string, 'html.parser')
981 return soup.prettify()
982
983def normalize_url(href, base_url):
984 """Normalize URLs to ensure consistent format"""

Callers 2

aprocess_htmlMethod · 0.85
process_htmlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…