defmodule MemexWeb.Components.ContextContent do @moduledoc """ Display the content for a context """ use MemexWeb, :component alias Memex.Contexts.Context alias Phoenix.HTML attr :context, Context, required: true def context_content(assigns) do ~H"""
<%= add_links_to_content(@context.content) %>
"
end
)
|> String.replace("\n", "
")
|> HTML.raw()
end
end