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

Function hn

crawl4ai/html2text/utils.py:13–18  ·  view source on GitHub ↗
(tag: str)

Source from the content-addressed store, hash-verified

11
12
13def hn(tag: str) -> int:
14 if tag[0] == "h" and len(tag) == 2:
15 n = tag[1]
16 if "0" < n <= "9":
17 return int(n)
18 return 0
19
20
21def dumb_property_dict(style: str) -> Dict[str, str]:

Callers 2

handle_tagMethod · 0.85
handle_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected