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