Expand my Community achievements bar.

SOLVED

i18n sling:message contains <a tag which is resulting in duplicate printing of message

Avatar

Level 4

Hi Team

 

When I have given some text for i18n translations in sling:message it is printing twice when I give in <a tag.

 

/apps/i18n-XXX/XXX/en_us/alert_message

 

sling:message: <a href="https://www.google.com" target="_self"><b> Shop </b></a>, knowing 

 

Result: Shop, knowing shop knowing

 

When I remove <a tag then it prints only once but my requirement is to use <a to display hyperlink.

 

Any inputs, please advise.

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Eliminate the use of HTML in i18n values; this is odd. This should be your primary solution.

 

Additionally, could you please provide the complete definition for your node? Don't just include the 'sling:message,' but also share the HTML code demonstrating how you are utilizing it."

 



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Eliminate the use of HTML in i18n values; this is odd. This should be your primary solution.

 

Additionally, could you please provide the complete definition for your node? Don't just include the 'sling:message,' but also share the HTML code demonstrating how you are utilizing it."

 



Esteban Bustamante