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

When I use dangerouslySetInnerHTML it doesn't linkify #104

Open
savinash47 opened this issue Oct 19, 2020 · 3 comments
Open

When I use dangerouslySetInnerHTML it doesn't linkify #104

savinash47 opened this issue Oct 19, 2020 · 3 comments

Comments

@savinash47
Copy link

savinash47 commented Oct 19, 2020

<Linkify>
         <div dangerouslySetInnerHTML={{__html: this.state.dataWithNestedDoms}}></div>
       </Linkify>

the state variable gets updated in componentDidMount and can have links in nested elements

@savinash47 savinash47 changed the title When I use dangerouslySetInnerHTML it doesn't convert linkify When I use dangerouslySetInnerHTML it doesn't linkify Oct 19, 2020
@kollynlund
Copy link

I am having this same issue. Is there any workaround for this?

@tiennguyen1293
Copy link

I am having this same issue. Do we have any update on this improvement? 🤔

@tiennguyen1293
Copy link

@savinash47, @kollynlund i applied this approach, and it worked with me.

#27 (comment)

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