Skip to content

dangerouslySetInnerHTML not work totally #94

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

Closed
zzzgit opened this issue Sep 5, 2017 · 3 comments
Closed

dangerouslySetInnerHTML not work totally #94

zzzgit opened this issue Sep 5, 2017 · 3 comments

Comments

@zzzgit
Copy link

zzzgit commented Sep 5, 2017

<div dangerouslySetInnerHTML={{__html: item.detailInfo}}></div>

it will be an empty element after compiled

@LinusBorg
Copy link
Member

LinusBorg commented Sep 5, 2017

That's a React prop, not a JSX functionality, and therefore not available in Vue. You should use a domProp instead, it's documented in the README (but has a bug unfortunately: #90).

@zzzgit
Copy link
Author

zzzgit commented Sep 5, 2017

thanks very much

@nickmessing
Copy link
Member

@LinusBorg, looks like it's a bug not related to jsx, more like it's related to ssr itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants