Lines Matching refs:markup
209 def __init__(self, markup, override_encodings=None, is_html=False, argument
219 self.markup, self.sniffed_encoding = self.strip_byte_order_mark(markup)
248 self.markup, self.is_html)
255 self.chardet_encoding = chardet_dammit(self.markup)
291 def find_declared_encoding(cls, markup, is_html=False, search_entire_document=False): argument
300 xml_endpos = html_endpos = len(markup)
303 html_endpos = max(2048, int(len(markup) * 0.05))
306 declared_encoding_match = xml_encoding_re.search(markup, endpos=xml_endpos)
308 declared_encoding_match = html_meta_re.search(markup, endpos=html_endpos)
335 def __init__(self, markup, override_encodings=[], argument
343 markup, override_encodings, is_html, exclude_encodings)
346 if isinstance(markup, str) or markup == '':
347 self.markup = markup
348 self.unicode_markup = str(markup)
354 self.markup = self.detector.markup
358 markup = self.detector.markup
406 markup = self.markup
413 markup = smart_quotes_compiled.sub(self._sub_ms_char, markup)
418 u = self._to_unicode(markup, proposed, errors)
419 self.markup = u
426 return self.markup