How can I get special characters using elm-html module?

后端 未结 5 1254
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 12:58

Disclaimer: I\'m brand new to Elm

I\'m fiddling around with the online Elm editor and I\'ve run into an issue. I can\'t find a way to get certain special charac

5条回答
  •  庸人自扰
    2021-02-02 14:02

    I found, that there is a better solution: you can convert special characters from Unicode to char, and then create a string from char:

    resString = String.fromChar (Char.fromCode 187)
    

提交回复
热议问题