link_preview
link_preview copied to clipboard
Link preview elixir library
The latest version of Floki deprecates the function parse. Replace calls to that function with calls to parse_document. This makes the assumption that the operation of parse, in returning only...
``` {:floki, "~> 0.32.0"}, {:tesla, "~> 1.4"}, {:html_entities, "~> 0.5", optional: true}, {:mogrify, "~> 0.9.1", optional: true}, {:tempfile, "~> 0.1.0", optional: true}, {:excoveralls, "~> 0.14", only: :test}, {:ex_doc, "~> 0.28",...
… to an image. However, every image description must begin with the strict string "og:image". Hence, only selecting that attribute is sufficient for our uses here.
Floki.parse/1 has been removed in 0.38.0 This PR parses the the HTML using the new `parse_document!/1` https://hexdocs.pm/floki/changelog.html#0-38-0-2025-06-14