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
Hi, thanks for the module. Unfortunately it doesn't do what I was expecting, so I won't be using it right now. But one suggestion I have is to also parse actual HTML for links. For example:
I know I can just change the way the content of the variable is printed and use dangerouslySetInnerHtml or whatever it's named, but I don't really want to... dangerously set inner HTML. I only want it to run for links, which is why a quick google brought up this module.
Would it be possible to attempt to convert the <a href="http://www.google.com">Google</a> instances first and then, if failing to find them, convert the actual link inside? Otherwise you get the weird bug seen above.
Thanks
Matt
The text was updated successfully, but these errors were encountered:
The screenshot you shared is the expected (default) behavior.
What you're doing seems to be best solved using dangerouslySetInnerHTML, as you suggested. We don't intend this library to be a full-fledged html parser, which is what it'd take to solve the scenario you've described.
Thanks. I just went for a different route and I entirely understand that you don't want to bloat the module with extra stuff like that. Cheers for getting back to me on it though!
Hi, thanks for the module. Unfortunately it doesn't do what I was expecting, so I won't be using it right now. But one suggestion I have is to also parse actual HTML for links. For example:
I know I can just change the way the content of the variable is printed and use dangerouslySetInnerHtml or whatever it's named, but I don't really want to... dangerously set inner HTML. I only want it to run for links, which is why a quick google brought up this module.
Would it be possible to attempt to convert the
<a href="http://www.google.com">Google</a>
instances first and then, if failing to find them, convert the actual link inside? Otherwise you get the weird bug seen above.Thanks
Matt
The text was updated successfully, but these errors were encountered: