We have the need to be able to decode html encoded responses. Are there any options within the SDK (library) or option within the Recipe Pills to do decoding of content?
Best Answer
A
Amanda Wong
said
over 6 years ago
Hi Saul,
While we do not have a direct formula to decode HTML encoded strings, you may use .gsub to achieve the same result.
Saul Macht
Decode HTML encoded string
We have the need to be able to decode html encoded responses. Are there any options within the SDK (library) or option within the Recipe Pills to do decoding of content?
Hi Saul,
While we do not have a direct formula to decode HTML encoded strings, you may use .gsub to achieve the same result.
Example:
[Data pill] contains:
Using formula:
Data output:
You can take a look at this recipe example here: https://www.workato.com/recipes/694839-html-decoding?st=2739f4#recipe
The recipe example includes the following characters:
Amanda Wong
Hi Saul,
While we do not have a direct formula to decode HTML encoded strings, you may use .gsub to achieve the same result.
Example:
[Data pill] contains:
Using formula:
Data output:
You can take a look at this recipe example here: https://www.workato.com/recipes/694839-html-decoding?st=2739f4#recipe
The recipe example includes the following characters: