beforeReplaceTagsWithURLs