Jump to content
We've recently updated our Privacy Statement, available here ×

Problem Using \'&\' character in a textfield


s4samudrala

Recommended Posts

Hello,

i need to display a text with some characters as bold. for that i am using the text field property markup with the value styleid.

below is a sample expression line in my textfield

"<style isBold='true'>Description :   </style>"+$P{mydesc}

 

i am able to get the desired output,  but i have a case when the parameter field has the character '&' then the expression is not evaluated and displays as it is entered....

for example..

if i have the mydesc parameter value as "this is the description " then the output will be..

Description: this is the description

suppose if i have the mydesc parameter value with special chnaracter in it like  "this is the description &&" then the output will be..

<style isBold='true'>Description: </style>this is the description &&

 

kindly help me with any suggesstions.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...