Skip to content
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

Does fbt support html strings? #30

Closed
m1m6 opened this issue Jan 4, 2019 · 1 comment
Closed

Does fbt support html strings? #30

m1m6 opened this issue Jan 4, 2019 · 1 comment
Labels
question Further information is requested

Comments

@m1m6
Copy link

m1m6 commented Jan 4, 2019

Hey, thanks for the nice package,

I have a question, does fbt support html string string?
like in react-intl theres formatHTMLmessage method that accept html element like:
formatHTMLmessage ('id','<span>test html string</span>')

does fbt support this?

@jrwats
Copy link
Contributor

jrwats commented Jan 7, 2019

FBT supports this inherently by way of the Babel JSX-transform upon which it relies. You can effectively write the above example in fbt as:

<span>
  <fbt desc="example">
    test html string
  </fbt>
</span>

@jrwats jrwats added the question Further information is requested label Jan 7, 2019
@jrwats jrwats closed this as completed Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants