Fix inline script tags not being removed

This commit is contained in:
Shadowfacts 2023-07-12 20:50:17 -07:00
parent 54c6a1ca0a
commit b0089083db
1 changed files with 3 additions and 2 deletions

View File

@ -135,8 +135,9 @@ defmodule Frenzy.Pipeline.ScrapeStage do
end
html =
Floki.find_and_update(
html,
html
|> Floki.filter_out("script")
|> Floki.find_and_update(
"img",
rewrite_image_urls(convert_to_data_uris, URI.parse(url))
)