I have a default attribute of type String in my lightning component. I need set the default value of this attribute as - "/apex/pagename?opr=convert&opptyId=someid'. but it is not accepting the & character. It is showing this error when saved:

ParseError at [row,col]:[5,95] Message: The reference to entity "opptyId" must end with the ';' delimiter.

I am using sublime text.

1 Answer 1


Try Like this use &

 <aura:attribute name="text" type="String" Default="/apex/pagename?opr=convert&amp;opptyId=someid" />

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .