pub fn parse_html_elements(html: &str) -> Vec<ParsedElement>Expand description
Read html into blocks and tables.
The reader recurses once per element level it follows, up to MAX_HTML_READ_DEPTH,
and a stack overflow aborts the process: a debug build ran out of a spawned thread’s
stack on a paste nested some 200 elements deep, and a host reading on a smaller thread
sooner. A tree nested deeper than a caller’s stack is sure to hold is read on a thread
of its own, with a stack sized for its depth; when no thread can be started, it is read
on the caller’s stack to HTML_DEPTH_ON_THE_CALLERS_STACK levels, each subtree
deeper than that read as its text. The quotations it holds are kept within
MAX_QUOTE_LEVELS (see
quote_depth).