Detect links from text and then return a html form

You asked the same question here, please do not double post