Hacker News new | past | comments | ask | show | jobs | submit login

I mean... a simple `renderedHTML = inputValue.replace(/(https?:\/\/\S?\.\S)/ig, '<a href="$1">$1</a>')` should be fine for client-side rendering and extremely basic http(s) URL replacement, no?



I want the user to be able to highlight some text and add a url to it, like you would with cmd-k in gdocs, sheets, etc. Not just linkifying any detected urls in the text.


Ah, okay, I misunderstood. Ignore me :D




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: