Replacing spans with a