menu
ok_http_dart package
documentation
html_paser.dart
html_paser.dart
dark_mode
light_mode
html_paser
library
Classes
AfterAfterBodyPhase
AfterAfterFramesetPhase
AfterBodyPhase
AfterFramesetPhase
AfterHeadPhase
BeforeHeadPhase
BeforeHtmlPhase
HtmlParser
Parser for HTML, which generates a tree structure from a stream of (possibly malformed) characters.
InBodyPhase
InCaptionPhase
InCellPhase
InColumnGroupPhase
InForeignContentPhase
InFramesetPhase
InHeadPhase
InitialPhase
InRowPhase
InSelectInTablePhase
InSelectPhase
InTableBodyPhase
InTablePhase
InTableTextPhase
Phase
Base class for helper object that implements each phase of processing.
TextPhase
Functions
getElementNameTuple
(
Element
e
)
→ Pair
<
String
,
String
?
>
Convenience function to get the pair of namespace and localName.
parse
(
dynamic
input
, {
String
?
encoding
,
bool
generateSpans
=
false
,
String
?
sourceUrl
})
→
Document
Parse the
input
html5 document into a tree. The
input
can be a
String
,
List<int>
of bytes or an
HtmlTokenizer
.
parseFragment
(
dynamic
input
, {
String
container
=
'div'
,
String
?
encoding
,
bool
generateSpans
=
false
,
String
?
sourceUrl
})
→
DocumentFragment
Parse the
input
html5 document fragment into a tree. The
input
can be a
String
,
List<int>
of bytes or an
HtmlTokenizer
. The
container
element can optionally be specified, otherwise it defaults to "div".
Typedefs
TokenProccessor
= Token Function
(
Token
token
)
Exceptions / Errors
ParseError
Error in parsed document.
ok_http_dart package
documentation
html_paser.dart
ok_http_dart
package
Libraries
browser_client
dom
dom_parsing
html_escape
html_paser
http
io_client
ok_http_dart
retry
html_paser library