encode data properly

This commit is contained in:
stwf 2020-06-02 10:18:06 -04:00
commit dbcc1b105e
5 changed files with 54 additions and 44 deletions

View file

@ -22,6 +22,8 @@ defmodule Pleroma.Web.Preload do
end
def build_script_tag(content) do
content = Base.encode64(content)
HTML.Tag.content_tag(:script, HTML.raw(content),
id: "initial-results",
type: "application/json"