MCPcopy Index your code
hub / github.com/kurtmckee/feedparser / feed

Method feed

feedparser/html.py:146–157  ·  view source on GitHub ↗

:type data: str :rtype: None

(self, data)

Source from the content-addressed store, hash-verified

144 return j
145
146 def feed(self, data):
147 """
148 :type data: str
149 :rtype: None
150 """
151
152 data = re.sub(r"<!((?!DOCTYPE|--|\[))", r"&lt;!\1", data, flags=re.IGNORECASE)
153 data = re.sub(r'<([^<>\s]+?)\s*/>', self._shorttag_replace, data)
154 data = data.replace('&#39;', "'")
155 data = data.replace('&#34;', '"')
156 super(_BaseHTMLProcessor, self).feed(data)
157 super(_BaseHTMLProcessor, self).close()
158
159 @staticmethod
160 def normalize_attrs(attrs):

Callers 3

parseFunction · 0.80
_sanitize_htmlFunction · 0.80
resolve_relative_urisFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected