11-15-2017 17:40
11-15-2017 17:40
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
11-15-2017 21:57
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 = '¾';