replace attributes for external link