Insert raw HTML into Elm component
There are a few solutions discussed in this post. Seems the poster had success with using Markdown.toHtml
.
To elaborate on the accepted answer, this is what worked for me:
Install the markdown library
elm-package install evancz/elm-markdown
To render your HTML in a div
import Markdown
div [] [ Markdown.toHtml [] str ]