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