The entity name must immediately follow the ‘&’ in the entity reference

Did you ever encounter an error like this while working on Aura components ?

 <lightning:tab label=”Skills & Competencies” id=”skils”>          

   Content here!!

  </lightning:tab>

Salesforce is complaining about the special character &, in order to fix it , change it to

<lightning:tab label=”Skills &amp; Competencies” id=”skils”>

and it works like a charm.

Permanent link to this article: https://salesforcebuddy.com/2020/05/the-entity-name-must-immediately-follow-the-in-the-entity-reference/

Leave a Reply

Your email address will not be published.