Open mhl10 opened 6 years ago
Submitters often include URIs in their comments. It would be great to parse them and present them as external links.
I stumbled upon this issue from our friends at Inspire, which discusses a jinja2 helper for external links: https://github.com/inspirehep/inspire-next/issues/585
It might be nice to do something similar (i.e. consistent about how we link to external resources).
I'm a pretty big fan of bleach for things like this; see http://bleach.readthedocs.io/en/latest/linkify.html
Looks like this will do exactly what we need!
Submitters often include URIs in their comments. It would be great to parse them and present them as external links.
I stumbled upon this issue from our friends at Inspire, which discusses a jinja2 helper for external links: https://github.com/inspirehep/inspire-next/issues/585
It might be nice to do something similar (i.e. consistent about how we link to external resources).