1 defmodule Pleroma.Web.Metadata do
4 @parsers Pleroma.Config.get([:metadata, :providers], [])
5 def build_tags(params) do
6 Enum.reduce(@parsers, "", fn parser, acc ->
10 |> Enum.map(&to_tag/1)
11 |> Enum.map(&HTML.safe_to_string/1)
19 with {name, attrs, _content = []} <- data do
20 HTML.Tag.tag(name, attrs)
22 {name, attrs, content} ->
23 HTML.Tag.content_tag(name, content, attrs)
26 raise ArgumentError, message: "make_tag invalid args"