I’m new to JavaScript and would greatly appreciate any guidance. My question is straightforward: how can I substitute special characters in a String or Object while using Zapier? For instance, I want to transform a value like surname = Müller
to Mueller. The replacements I’m looking for are as follows:
ä = ae ö = oe ü = ue ß = ss
These are the most frequently used ones. I’ve encountered various JavaScript solutions, but they don’t seem compatible with Zapier, except for this snippet: const updatedName = inputData.updatedName.replace(/ö/g, ‘oe’); return {output: updatedName};
This only addresses one Umlaut, and I’m unsure how to include additional replacements. (updatedName is the variable’s name). Thank you for your assistance!