add anchors tag to the caption text