Add span end tag back if needed