Special characters are getting encoded when using < pega:lookup > tag

Hi All,

I am using <pega:lookup> tag to display value of a field value on UI . Since the field value has single quotes[']. Encoded HTML characters are getting displayed on UI. Like in below example:-

Expected Value: 'Submit' Output Value: &#39;Submit&#39;

Can anyone tell me how to proceed?



**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

April 30, 2017 - 9:00am

Can you try to set mode=literal as described in this online help:

May 2, 2017 - 1:59am
Response to KevinZheng_GCS

Thanks for the reply Kevin. That's working fine, But there is another challenge here.

Field value has a property reference "ABC" and descripton in field value looks like  {ABC} click 'Submit' button

and value in ABC is <script>alert(34);</script>

Now, when I use mode="literal" it is popping out alerts. Kindly help me out

May 2, 2017 - 4:51am
Response to VenkataRakhesh

Instead of Mode="literal". Can you once try format ="RichTextDisplay"

May 2, 2017 - 5:14am

When I put format="RichTextDisplay"  value of field value is not getting displayed

May 2, 2017 - 8:00am

May 3, 2017 - 1:08am
Response to Narasimha522

Thanks Narasimha