I have this string in JSON format:
"message": "<?= __('I agree to the <a>Terms of Service</a>', $block->getUrl('terms-conditions')) ?>"
What I want to do is add a link to the string of this form
"message": "<?= __('I agree to the <a href="%1">Terms of Service</a>', $block->getUrl('terms-conditions')) ?>"
But when I do this I get the following error:
SyntaxError: Unexpected token h in JSON
How can I add the link to the tag in a correct way?
\"%1\"