Update links text based on the related HTML snippet