MCPcopy Index your code
hub / github.com/clips/pattern / handle_data

Method handle_data

pattern/web/feed/feedparser.py:769–776  ·  view source on GitHub ↗
(self, text, escape=1)

Source from the content-addressed store, hash-verified

767 self.elementstack[-1][2].append(text)
768
769 def handle_data(self, text, escape=1):
770 # called for each block of plain text, i.e. outside of any tag and
771 # not containing any character or entity references
772 if not self.elementstack:
773 return
774 if escape and self.contentparams.get('type') == u'application/xhtml+xml':
775 text = _xmlescape(text)
776 self.elementstack[-1][2].append(text)
777
778 def handle_comment(self, text):
779 # 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