remove trailing </span>