SO - 20198482

by Arun P Johny

HTML

<div class="items">
    "Items Description"
    <ul>
        <li>1. One</li>
        <li>2. Two</li>
        <li>3. Three</li>
    </ul>
</div>

JavaScript

var text = $.trim($('.items')[0].firstChild.nodeValue)
console.log(text)