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

Method entityref

crawl4ai/html2text/__init__.py:924–931  ·  view source on GitHub ↗
(self, c: str)

Source from the content-addressed store, hash-verified

922 return ""
923
924 def entityref(self, c: str) -> str:
925 if not self.unicode_snob and c in config.UNIFIABLE:
926 return config.UNIFIABLE[c]
927 try:
928 ch = html.entities.html5[c + ";"]
929 except KeyError:
930 return "&" + c + ";"
931 return config.UNIFIABLE[c] if c == "nbsp" else ch
932
933 def google_nest_count(self, style: Dict[str, str]) -> int:
934 """

Callers 1

handle_entityrefMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected