I am not able to remove zero width character from a string. It is no problem to remove any other character, only the '\u200B' seems to resist my tries.
I am getting strings from my API that contain zero spaces (\u200B) that are used to tell the mobile app where to break words. Now within a comparison in my web app I need to get rid of these zero spaces.
I tried
ingredient = ingredient.replace(/\u200B/g,'')
with a large 'B' and a small 'b' and the same with lodash
_.replace(ingredient, '\u200B', '');
but none of my options seem to work. Any ideas?