Best answer

Decode unicode entities from webhook trigger data

  • 13 July 2021
  • 1 reply
  • 243 views

Hi,

I currently have a zap trigger by a webhook. In the response, some characters turn into unicode characters.

For example < turns into \u003c and > turns into \u003e.

Is there a way to decode or unescape these unicode entities? E.g. like in this tool.

I played around with the Formatter, but no luck.

 

EDIT: Sample text

the second piece of code after the \u003cbody\u003e tag is \u003cdiv id=\"app\"\u003e but after

icon

Best answer by SamB 21 July 2021, 17:02

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +11

Hey @Tomas Vemola,

Welcome to the Community! 

This may not be an ideal workaround if there’s lots of characters that are converted but if it’s just the < and > characters that are affected you could use a couple of Formatter > Text > Replace steps. 

One to find all instances of \u003c and replace it with <. And another one to replace \u003e with >. You can find out more about how to use Formatter steps to replace text here: Find, replace, or split special characters
 

Hope that helps! :)