SyntaxFix
Write A Post
Hire A Developer
Questions
I found in my specific case that I just needed to trim the content. Maybe not the answer asked in the question. But I thought I should add this answer anyway.
$(myContent).text().trim()