6
Views
5
Comments
Displaying encoded data (Decoding data for common HTML encoded characters)
Question
I have a string which was submitted by an external system, which some encoded HTML characters.

Ex, A space is saved as %20 in the database.

How to decode these sequences while displaying on a page.
2020-08-05 08-52-58
Ruben Goncalves
Hi Kumar,

Someone asked a similar thing some time ago in this post.
Currently there is no component on the forge that does it, that I'm aware.

I'll try to add that functionality to this component next week or so.
If you endup creating ax extension, don't forget to share it! :)

Cheers,

RG
2019-11-12 17-31-26
Justin James
 
MVP
HTTPRequestHandler has a "DecodeHTML" function which does what you want, I believe.

J.Ja
UserImage.jpg
Kumar Bibek
Hi Justin,

I tried this, but it doesn't seem to work.

Justin James wrote:
HTTPRequestHandler has a "DecodeHTML" function which does what you want, I believe.

J.Ja
 
 
2020-08-05 08-52-58
Ruben Goncalves
Kumar Bibek wrote:
Hi Justin,

I tried this, but it doesn't seem to work.

Justin James wrote:
HTTPRequestHandler has a "DecodeHTML" function which does what you want, I believe.

J.Ja
 
 
 
 Hi Kumar,

Just added that functionality to this component!

Hope it helps!

Cheers,
RG
UserImage.jpg
Kumar Bibek
Hi Justin,
That didn't seem to work. But I will look at it once more. 

Hi Ruben,
That post didn't have enough information. So, I cried this thread. 

Thanks for your replies. If I find a solution soon, I would definitely update this thread.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.