Added stripping html tags from search result title

In the future, we could keep certain tags like bold.
For now, stripping is the most sane solution.
This commit is contained in:
Evangelos Lamprou 2023-10-17 16:26:22 +02:00
parent 565f8bcbf9
commit e5653bf297
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,9 @@
"elm/url": "1.0.0",
"elm-community/list-extra": "8.7.0",
"elm-community/maybe-extra": "5.3.0",
"elm-community/string-extra": "4.0.1",
"figbus/elm-urbit-api": "4.0.1",
"hecrj/html-parser": "2.4.0",
"ianmackenzie/elm-1d-parameter": "1.0.1",
"ianmackenzie/elm-3d-camera": "3.1.0",
"ianmackenzie/elm-3d-scene": "1.0.1",

View File

@ -29,6 +29,8 @@ import Html.String
import List
import Css
import Html.Styled.Attributes exposing (css)
import Html.Parser
import String.Extra exposing (stripTags)
url : String
@ -256,10 +258,9 @@ view model =
, Html.Attributes.style "padding" "0.5em" |> htmlAttribute
, Html.Attributes.class "result" |> htmlAttribute
]
[ text title
[ text (stripTags title)
|> el
[ Font.size 16
, width fill
]
, text link
|> el