Most questions about extracting text from HTML (i.e., stripping the tags) use:
jQuery( htmlString ).text();
While this
Use element.innerText This not return extra nodes added from contenteditable elements. If you use element.innerHTML the text will contain additional markup, but innerText will return what you see on the element's contents.
element.innerText
element.innerHTML