Added code to extract links from html text