replace duplicate content with anchor