Is there a way to render links within Phoenix.HTML.Format.text_to_html?

Tags: #<Tag:0x00007f1142e8dd98>


I have users that submit text and I would like to render links within Phoenix.HTML.Format.text_to_html/2 but am running into some issues. Ideally I would create an iodata to pass in but Phoenix.HTML.Format.text_to_html/2 only supports strings so I can’t use first.



You can use the :escape option, but this will let through all html.


Hmm, maybe I’ll have to look at the implementation of text_to_html