MCPcopy
hub / github.com/csev/py4e / handle_entityref

Method handle_entityref

code3/bs4/builder/_htmlparser.py:88–94  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

86 self.handle_data(data)
87
88 def handle_entityref(self, name):
89 character = EntitySubstitution.HTML_ENTITY_TO_CHARACTER.get(name)
90 if character is not None:
91 data = character
92 else:
93 data = "&%s;" % name
94 self.handle_data(data)
95
96 def handle_comment(self, data):
97 self.soup.endData()

Callers

nothing calls this directly

Calls 2

handle_dataMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected