diff --git a/View.elm b/View.elm index 979085e..7b713e6 100644 --- a/View.elm +++ b/View.elm @@ -4,7 +4,7 @@ import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) import HtmlParser -import HtmlParser.Util exposing (textContent) +import HtmlParser.Util exposing (toVirtualDom) import Mastodon import Model exposing (Model, Msg(..)) @@ -41,7 +41,7 @@ statusView status = [ img [ class "avatar", src status.account.avatar ] [] , div [ class "username" ] [ text status.account.username ] , div [ class "status-text" ] - [ HtmlParser.parse status.content |> textContent |> text ] + (HtmlParser.parse status.content |> toVirtualDom) ] diff --git a/style.css b/style.css index 84d1435..bb45672 100644 --- a/style.css +++ b/style.css @@ -23,3 +23,10 @@ .username { font-weight: bold; } + +.invisible { + font-size: 0; + line-height: 0; + display: inline-block; + width: 0; +}