mayacakmak / emarsoftware

Front end tools for designing robot faces, setting up custom robot APIs, and controlling a robot (WoZ)
BSD 2-Clause "Simplified" License
2 stars 11 forks source link

Apostrophe Not Working In Belly Input #13

Closed tanya17365 closed 3 years ago

tanya17365 commented 3 years ago

While creating a new screen for the ACT Yes And No micro-interaction, any text including and after the apostrophe in the belly screen was not accepted and disappeared after typing it. Most other common special characters work, however.

kaimihata commented 3 years ago

Need to replace the quotes in the strings we are trying to render with escaped versions of the strings, so we can instead of showing screen.instructionLarge.text we need to instead show screen.instructionLarge.text.replace(/'/g, ''') to replace the single quote with the HTML escaped single quote (and the same with the instructionSmall.