Ensure text nodes are always wrapped in span.