:type data: str :rtype: None
(self, data)
| 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"<!\1", data, flags=re.IGNORECASE) |
| 153 | data = re.sub(r'<([^<>\s]+?)\s*/>', self._shorttag_replace, data) |
| 154 | data = data.replace(''', "'") |
| 155 | data = data.replace('"', '"') |
| 156 | super(_BaseHTMLProcessor, self).feed(data) |
| 157 | super(_BaseHTMLProcessor, self).close() |
| 158 | |
| 159 | @staticmethod |
| 160 | def normalize_attrs(attrs): |
no outgoing calls
no test coverage detected