tasti / react-linkify

React component to parse links (urls, emails, etc.) in text into clickable links
http://tasti.github.io/react-linkify/
MIT License
555 stars 106 forks source link

When I use dangerouslySetInnerHTML it doesn't linkify #104

Open savinash47 opened 4 years ago

savinash47 commented 4 years ago
<Linkify>
         <div dangerouslySetInnerHTML={{__html: this.state.dataWithNestedDoms}}></div>
       </Linkify>

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

kollynlund commented 3 years ago

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

tiennguyen1293 commented 3 years ago

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

tiennguyen1293 commented 3 years ago

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

https://github.com/tasti/react-linkify/issues/27#issuecomment-291581428