Wow, now that's big. I'd try just this:

$('ul > li').each(function() {
        if (this.firstChild && this.firstChild.nodeType == 3) {
                $(this.firstChild).wrap('<a href=""></a>')
        }
})
--
Piotr Petrus http://riddle.pl

Reply via email to