i18n sling:message contains <a tag which is resulting in duplicate printing of message | Community
Skip to main content
Prashardan
Level 4
September 28, 2023
Solved

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

  • September 28, 2023
  • 1 reply
  • 589 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

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."

 

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 28, 2023

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