diff --git a/lib/keila_web/live/form_edit_live.ex b/lib/keila_web/live/form_edit_live.ex index a0e8a8bd..f3af949f 100644 --- a/lib/keila_web/live/form_edit_live.ex +++ b/lib/keila_web/live/form_edit_live.ex @@ -43,6 +43,9 @@ defmodule KeilaWeb.FormEditLive do mode: :embed, changeset: Ecto.Changeset.change(%Keila.Contacts.Contact{}) }) + |> Phoenix.HTML.Safe.to_iodata() + |> Floki.parse_fragment!() + |> Floki.raw_html(pretty: true) socket |> assign(:form_preview, form_preview) diff --git a/lib/keila_web/templates/form/edit_live.html.heex b/lib/keila_web/templates/form/edit_live.html.heex index 835d1c9b..3c62fb0a 100644 --- a/lib/keila_web/templates/form/edit_live.html.heex +++ b/lib/keila_web/templates/form/edit_live.html.heex @@ -198,7 +198,7 @@ <%= if @form_preview.settings.csrf_disabled do %>