Skip to content

Instantly share code, notes, and snippets.

@fredcy
Created November 30, 2015 16:46
Show Gist options
  • Save fredcy/da6a69f084107c6b64e0 to your computer and use it in GitHub Desktop.
Save fredcy/da6a69f084107c6b64e0 to your computer and use it in GitHub Desktop.
import Html exposing (span)
import Html.Attributes exposing (property)
import Json.Encode exposing (string)
main = span [ property "innerHTML" <| string "x &times; y"] []
@simonewebdesign
Copy link

An alternative would be to use the UTF-8 character representation as described in this discussion:

main = span [] [ text "x × y" ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment