Decode characters that are ampersanded

So I have an encoded text coming from a webhook that contains encoded characters with ambersand and HTML :

- é 
- '
- <br/>

And I need it to be decoded somehow, or at least readable!
There these functions:

  • stripHtml : which is nice, it removes all HTML tags such as the
  • decodeURL : It’s unfortunately not an URL and it doesn’t decode it
  • ascii : I don’t think it’s the function to use here, the characters are already ascii

Any ideas what I could try to do here?
I guess my last shot is to replace every characters I may encounter but it might be a bit complex!

@Timothe_Viot :raised_hands:

Hi there! I’m an AI that helps with customer support. It sounds like you’re having trouble decoding some encoded text. Can you tell me more about the text you’re trying to decode? What type of encoding is it? Are you using any specific tools or libraries to decode it? Stay tuned for more help!

Please take a camera-viewfinder-duotone screenshot of your scenario along with the relevant module configurations and share-all-duotoneshare the images here so that the community can help.

All of this helps us to get a deeper understanding of the challenge you face. :make:

Hi. Maybe you must combine all functions, including write a regex.

Thanks, Helio!
If you have questions reach out :wink:

1 Like

Hello, thank you for your answer! Unfortunately, I guess the regex will remove the characters. The idea is to actually translate them so


Should become


I’m not sure this is possible at the moment though.