improve linksInText()