1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.Preload do
9 def build_tags(_conn, params) do
11 Enum.reduce(Pleroma.Config.get([__MODULE__, :providers], []), %{}, fn parser, acc ->
12 Map.merge(acc, parser.generate_terms(params))
19 |> HTML.safe_to_string()
24 def build_script_tag(content) do
25 HTML.Tag.content_tag(:script, HTML.raw(content),
26 id: "initial-results",
27 type: "application/json"