Last active
July 1, 2022 12:18
-
-
Save joakimk/57b4495fe5a4fd84506b to your computer and use it in GitHub Desktop.
How to embed raw HTML in Elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div [ (Html.Attributes.property "innerHTML" (Json.Encode.string "Test <em>em</em> here.")) ] [] |
@phylor Installation for elm install hecrj/html-parser
doesnt work, getting no package with that name
@sourabh2106 Works fine for me. The package is still in the repository. Are you using elm 0.19?
$ elm --version
0.19.1
$ elm install hecrj/html-parser
Here is my plan:
Add:
elm/parser 1.1.0
hecrj/html-parser 2.3.4
rtfeldman/elm-hex 1.0.0
Would you like me to update your elm.json accordingly? [Y/n]:
Success!
thanks!!! @phylor that worked for me in v0.19.1 !!! ❤️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This worked for me. Thank you <3