Format: application/octet-stream
1 from typing import AnyStr, List, Tuple
2
3 from markupbase import ParserBase
4
5 class HTMLParser(ParserBase):
6 def __init__(self) -> None: ...
7 def feed(self, feed: AnyStr) -> None: ...
8 def close(self) -> None: ...
9 def reset(self) -> None: ...
10 def get_starttag_text(self) -> AnyStr: ...
11 def set_cdata_mode(self, AnyStr) -> None: ...
12 def clear_cdata_mode(self) -> None: ...
13 def handle_startendtag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...
14 def handle_starttag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...
15 def handle_endtag(self, tag: AnyStr): ...
16 def handle_charref(self, name: AnyStr): ...
17 def handle_entityref(self, name: AnyStr): ...
18 def handle_data(self, data: AnyStr): ...
19 def handle_comment(self, data: AnyStr): ...
20 def handle_decl(self, decl: AnyStr): ...
21 def handle_pi(self, data: AnyStr): ...
22 def unknown_decl(self, data: AnyStr): ...
23 def unescape(self, s: AnyStr) -> AnyStr: ...
24
25 class HTMLParseError(Exception):
26 msg: str
27 lineno: int
28 offset: int
29