Any ideas how to parse href for links inside JSON files? #761
Unanswered
guillermo-avalos
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What is happening when you say "It break"? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to be able to have HTML in my JSON translation files. I was able to parse p and b tags, as well as anchors tags, but the moment I add href to it, the content breaks. I'm using the Trans component of course. Here's what I'm using:
JSON Translation (common.json):
Trans component looks like this (using TailwindCSS for styling):
This successfully renders and translates out. However, when I add the href= to the a tag, it breaks. Any ideas on how to target the full a href tag? btw I'm using Next.js so the Link component would be preferable.
Beta Was this translation helpful? Give feedback.
All reactions