How to get the whole text content of a link

Thank you! This looks like what I need.