mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-06-04 11:24:40 +08:00
Nick: fixed include tags bug
This commit is contained in:
parent
dacc5d4f45
commit
7fdecdc4d3
@ -221,7 +221,8 @@ fn _transform_html_inner(opts: TranformHTMLOptions) -> Result<String, ()> {
|
||||
let root = new_document.select_first("div")?;
|
||||
|
||||
for x in opts.include_tags.iter() {
|
||||
for tag in document.select(x)? {
|
||||
let matching_nodes: Vec<_> = document.select(x)?.collect();
|
||||
for tag in matching_nodes {
|
||||
root.as_node().append(tag.as_node().clone());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user