pub(crate) fn extract_html(buf: &str, include_verbatim: bool) -> Vec<RawUri> {
    let mut input = BufferQueue::new();
    input.push_back(StrTendril::from(buf));

    let mut tokenizer = Tokenizer::new(
        LinkExtractor::new(include_verbatim),
        TokenizerOpts::default(),
    );
    let _handle = tokenizer.feed(&mut input);
    tokenizer.end();

    tokenizer.sink.links
}
/// Extract unparsed URL strings from an HTML string.
Extract unparsed URL strings from an HTML string.
Extract unparsed URL strings from an HTML string .
pub(crate) fn extract_html(buf: &str, include_verbatim: bool) -> Vec<RawUri> {
    let mut input = BufferQueue::new();
    input.push_back(StrTendril::from(buf));
    let mut tokenizer = Tokenizer::new(
        LinkExtractor::new(include_verbatim),
        TokenizerOpts::default(),
    );
    let _handle = tokenizer.feed(&mut input);
    tokenizer.end();
    tokenizer.sink.links
}
pub ( crate ) fn extract_html ( buf : & str , include_verbatim : bool ) -> Vec < RawUri > { let mut input = BufferQueue :: new ( ) ; input . push_back ( StrTendril :: from ( buf ) ) ; let mut tokenizer = Tokenizer :: new ( LinkExtractor :: new ( include_verbatim ) , TokenizerOpts :: default ( ) , ) ; let _handle = tokenizer . feed ( & mut input ) ; tokenizer . end ( ) ; tokenizer . sink . links }
Extract unparsed URL strings from an HTML string.
Extract unparsed URL strings from an HTML string .
buf
&str
include_verbatim
bool