MCPcopy
hub / github.com/pyload/pyload / handle_data

Method handle_data

module/lib/feedparser.py:710–716  ·  view source on GitHub ↗
(self, text, escape=1)

Source from the content-addressed store, hash-verified

708 self.elementstack[-1][2].append(text)
709
710 def handle_data(self, text, escape=1):
711 # called for each block of plain text, i.e. outside of any tag and
712 # not containing any character or entity references
713 if not self.elementstack: return
714 if escape and self.contentparams.get('type') == 'application/xhtml+xml':
715 text = _xmlescape(text)
716 self.elementstack[-1][2].append(text)
717
718 def handle_comment(self, text):
719 # called for each comment, e.g. <!-- insert message here -->

Callers 3

unknown_starttagMethod · 0.95
unknown_endtagMethod · 0.95
parse_declarationMethod · 0.95

Calls 3

_xmlescapeFunction · 0.85
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected