ctrager/budoco

when urls appear in description, details, or post text, turn them into clickable <a> tags.

ctrager opened this issue · 11 comments

This needs to happen on the client side, because we don't want to use dangerous @Html.Raw on server. See how Search.cshtml turns the postgresql start/end markers into and tags and follow that pattern.

For recognizing urls, but maybe we also want to recognize example.com, example.org, and even example.net, even though that works bad with my own "BugTracker.NET".

url parser
https://mathiasbynens.be/demo/url-regex
https://gist.github.com/dperini/729294
Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)

I am doing with this issue.

Not all URLs seem to parse. (

localhost don't work

You did post comments but not issue description and issue details

let's see how github handles github.com, bugtracker.net, google.com....

okay, they want https://google.com...

https://localhost
Not replaceable.

https://google.com gets replaced in the p_text field but this issue is also for i_description and i_details.

We can't do this just using textarea.

Oops, you're right. Sorry. I'm rusty.