-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting an error for using FormattedHTMLMessage #79
Comments
udayrajMT
changed the title
Getting an error for using html inside message strings
Getting an error for using FormattedHTMLMessage
Jul 2, 2020
Had a simular issue, this can be solved by marking the HTML as escaped Example: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node
version: 12yarn
version: 1.22react-intl
version: 2.9.0Do you want to request a feature or report a bug?:
bug.
(would be a feature if this functionality is missing altogether)
What is the current behavior?:
When using FormattedHTMLMessage to parse the following string -
Sample message string :
Hello <span class='bold'>'{name}'</span>
I'm getting an 'unexpected token' error.
What is the expected behavior?:
Expecting this to be extracted like the other messages.
Suggested solution:
The text was updated successfully, but these errors were encountered: