mirror of
https://github.com/ilyakooo0/seax.git
synced 2024-10-26 20:59:40 +03:00
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:
parent
565f8bcbf9
commit
e5653bf297
@ -21,7 +21,9 @@
|
|||||||
"elm/url": "1.0.0",
|
"elm/url": "1.0.0",
|
||||||
"elm-community/list-extra": "8.7.0",
|
"elm-community/list-extra": "8.7.0",
|
||||||
"elm-community/maybe-extra": "5.3.0",
|
"elm-community/maybe-extra": "5.3.0",
|
||||||
|
"elm-community/string-extra": "4.0.1",
|
||||||
"figbus/elm-urbit-api": "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-1d-parameter": "1.0.1",
|
||||||
"ianmackenzie/elm-3d-camera": "3.1.0",
|
"ianmackenzie/elm-3d-camera": "3.1.0",
|
||||||
"ianmackenzie/elm-3d-scene": "1.0.1",
|
"ianmackenzie/elm-3d-scene": "1.0.1",
|
||||||
|
@ -29,6 +29,8 @@ import Html.String
|
|||||||
import List
|
import List
|
||||||
import Css
|
import Css
|
||||||
import Html.Styled.Attributes exposing (css)
|
import Html.Styled.Attributes exposing (css)
|
||||||
|
import Html.Parser
|
||||||
|
import String.Extra exposing (stripTags)
|
||||||
|
|
||||||
|
|
||||||
url : String
|
url : String
|
||||||
@ -256,10 +258,9 @@ view model =
|
|||||||
, Html.Attributes.style "padding" "0.5em" |> htmlAttribute
|
, Html.Attributes.style "padding" "0.5em" |> htmlAttribute
|
||||||
, Html.Attributes.class "result" |> htmlAttribute
|
, Html.Attributes.class "result" |> htmlAttribute
|
||||||
]
|
]
|
||||||
[ text title
|
[ text (stripTags title)
|
||||||
|> el
|
|> el
|
||||||
[ Font.size 16
|
[ Font.size 16
|
||||||
, width fill
|
|
||||||
]
|
]
|
||||||
, text link
|
, text link
|
||||||
|> el
|
|> el
|
||||||
|
Loading…
Reference in New Issue
Block a user