1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4 defmodule Pleroma.Web.Metadata do
7 def build_tags(params) do
8 Enum.reduce(Pleroma.Config.get([__MODULE__, :providers], []), "", fn parser, acc ->
11 |> parser.build_tags()
12 |> Enum.map(&to_tag/1)
13 |> Enum.map(&HTML.safe_to_string/1)
21 with {name, attrs, _content = []} <- data do
22 HTML.Tag.tag(name, attrs)
24 {name, attrs, content} ->
25 HTML.Tag.content_tag(name, content, attrs)
28 raise ArgumentError, message: "make_tag invalid args"