Localizely logo
  • Home
  • Getting started
  • How it works
  • Pricing
  • FAQ
Sign up

How to add HTML tags to a localization message in React? 

When it comes to localizing messages in React, there may be situations where you need to include HTML tags in the message to add emphasis, create links, or make other formatting changes.

Here's an example of using a link in a localized message. This example uses the react-intl localization library, but many other localization libraries likely support using HTML tags within messages as well.

The localization message:

The usage in the code:

Related React internationalization questions:

React internationalization tutorial:

Learn about internationalization in React
Localizely logo
About
Free tools
Boring stuff
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
Newsletter
Copyrights 2026 © Localizely