Skip to main content

extract_from_html

Function extract_from_html 

pub fn extract_from_html(html: &str) -> ExtractJsonLd<'_> 
Available on crate features http and std only.
Expand description

Lazily extract embedded JSON-LD documents from an HTML string.

The iterator tokenizes bounded chunks as they are requested. Each item is fallible because an identified application/ld+json block can contain malformed JSON or lack its closing script tag.