MCPcopy Create free account
hub / github.com/kurtmckee/feedparser / handle_comment

Method handle_comment

feedparser/html.py:261–269  ·  view source on GitHub ↗

:type text: str :rtype: None

(self, text)

Source from the content-addressed store, hash-verified

259 self.pieces.append(text)
260
261 def handle_comment(self, text):
262 """
263 :type text: str
264 :rtype: None
265 """
266
267 # Called for HTML comments, e.g. <!-- insert Javascript code here -->
268 # Reconstruct the original comment.
269 self.pieces.append('<!--%s-->' % text)
270
271 def handle_pi(self, text):
272 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected