MCPcopy Create free account
hub / github.com/commonmark/cmark / handle_entityref

Method handle_entityref

test/normalize.py:90–96  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

88 self.output += '<?' + data + '>'
89 self.last = "pi"
90 def handle_entityref(self, name):
91 try:
92 c = chr(name2codepoint[name])
93 except KeyError:
94 c = None
95 self.output_char(c, '&' + name + ';')
96 self.last = "ref"
97 def handle_charref(self, name):
98 try:
99 if name.startswith("x"):

Callers

nothing calls this directly

Calls 1

output_charMethod · 0.95

Tested by

no test coverage detected