mirror of
https://github.com/jhillyerd/inbucket.git
synced 2026-01-26 21:15:57 +00:00
ui: Use web components to render server-side HTML
This commit is contained in:
@@ -588,10 +588,10 @@ messageBody message bodyMode =
|
||||
, article [ class "message-body" ]
|
||||
[ case bodyMode of
|
||||
SafeHtmlBody ->
|
||||
div [ property "innerHTML" (Encode.string message.html) ] []
|
||||
Html.node "rendered-html" [ property "content" (Encode.string message.html) ] []
|
||||
|
||||
TextBody ->
|
||||
div [ property "innerHTML" (Encode.string message.text) ] []
|
||||
Html.node "rendered-html" [ property "content" (Encode.string message.text) ] []
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user