I'm using the aura:unescapedHtml
component with some custom labels that will also include markup. For example:
Custom Label:
<labels>
<fullName>Register_Text</fullName>
<language>en_US</language>
<value><a href="/register">Click here</a> to finish.</value>
</labels>
Lightning component:
<aura:unescapedHtml value="{!$Label.c.Register_Text}" />
I have a scenario where the text I wanted to add to custom label includes a value from an aura:attribute
in the Lightning component:
<aura:attribute name="registerLink" type="String"/>
<a href="{!v.registerLink}">Click here</a> to finish
If I add that href markup to a custom label, will it still render when referenced in <aura:unescapedHtml>
?
<labels>
<fullName>Register_Text</fullName>
<language>en_US</language>
<value><a href="{!v.registerLink}">Click here</a> to finish</value>
</labels>