it will replace a tag inside <span>