11-15-2017 17:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
11-15-2017 17:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm trying to use entities such as ¼, ½, and ¾.
I've tried using all the codes from https://www.toptal.com/designers/htmlarrows/numbers/fraction-three-quarters/ to get a ¾. It seems to work if I place it directly in the index.gui, but outputs the literal string if I try to change an element's text via JavaScript.
document.getElementById('myElement').text='¾';
Is this a known issue? Are there any good workarounds?

11-15-2017 21:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-15-2017 21:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
If I'm not mistaken, .text will sanitize the input, causing literal output instead of HTML.
.innerHTML should work. Though I have not tested it specifically with the Fitbit Ionic.
document.getElementById('myElement').innerHTML = '¾';

