Skip to main content

parse_html_poll

Function parse_html_poll 

Source
pub fn parse_html_poll(html: &str, poll: impl FnMut() -> bool) -> Node
Expand description

parse_html に、PARSE_HTML_POLL_EVERY 回か PARSE_HTML_POLL_BYTES バイトごとに poll を呼ぶ口を付けたもの (2026-11-18、TODO R2 (b) ②)。poll が true を返したら、そこまでの木(開いたままのタグは閉じたものとして扱う)を返す。