You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I ran into this bug while using the library. Linkify does not work when wrapping a component that's created with dangerouslySetInnerHTML. The use-case for that is to generate templates (e.g. blog posts) that was saved in a database.
// This identifies the URI and wraps it with an anchor text
<Linkify>
<p>
<span>Go to https://google.com</span>
</p>
</Linkify>
// This did not catch the link
<Linkify>
<p dangerouslySetInnerHTML={{ __html: '<span>Go to https://google.com</span>'}} />
</Linkify>
The text was updated successfully, but these errors were encountered:
Hello! I ran into this bug while using the library.
Linkify
does not work when wrapping a component that's created withdangerouslySetInnerHTML
. The use-case for that is to generate templates (e.g. blog posts) that was saved in a database.The text was updated successfully, but these errors were encountered: