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!