$('div').contents().filter(function() { return this.nodeType == 3; }).wrap("")
.custom { color: red }
Text 1 Text 2