So this is probably as straightforward a question as can be. I’m using an API in my React project and it returns strings in many cases. However, I noticed that the longer texts have strange arrows in them (image below) and I have no idea what they are, so I can’t even format the text properly. Does anyone know what this is about? Thanks!
I've found the solution
It's because there is a weird and non-standard character instead of white space in your string.
The code below will fix your problem :)
const fixedString = yourString.replace(String.fromCharCode(12)," ")
Correct answer by Shawn Vn on November 6, 2020
Get help from others!