simplified the link text extraction