update links text based on related HTML snippet
Merge pull request #5676 from dgellow/master

Update links text based on the related HTML snippet