I have a line in my view like this:
return (<Button title='▶' />)
which works to display the "arrow forward" ▶ symbol.
While trying to clean it up, I tried to do something like this:
let arrowRight = '▶';
return (<Button title={arrowRight} />)
But now it displays the button with a title of ▶
As an alternative, I've just put the actual unicode symbol in there and made sure the document is UTF-8 and it works fine. But it made me curious.
Is there a simple way to tell React not to html encode the string?