HRSD Record Producer text box cannot receive special characters

nseabra
Tera Contributor

Hi all,

 

I have a record producer that has 5 variables, all of them are "Multi Line Text". This variables are then populating the description of the respective HR Case.

I'm facing an issue where, whenever an user types some special characters ("", <, >, &,...), these characters are replaced with HTML code (See images). 

nseabra_0-1690883511263.png

nseabra_1-1690883539636.png

 

 

Is there a workaround that allows the description to be populated with the special characters?

 

Thank you all 🙂 

 

1 ACCEPTED SOLUTION

Hello @nseabra 

 

You can use this :-

 

setStringParameterNoEscape

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

View solution in original post

11 REPLIES 11

Samaksh Wani
Giga Sage
Giga Sage

Hello @nseabra 

 

 

GlideStringUtil.escapeHTML(gr.short_description);

 

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

 

Hi,

Thank you for the quick response.
As my instance is heavily customized and our description is populated by some business rules, I'm still testing different scenarios. 
However, for now it seems to be working fine. After the intensive tests i'll mark it as correct, if no issue appears 🙂

Thank you so much,

Nuno

Mahesh23
Mega Sage

Hey,
Are you able to solve this issue ? If yes, could please share the solution here.

Samaksh Wani
Giga Sage
Giga Sage

Hello @nseabra 

 

Plz mark my solution as Accept and close the thread, if you find any help from my response. it will help future readers.

 

Regards,

Samaksh