func for links in text