Right now when I just try .text() on a node I get it's text but it lacks newlines where would be line breaks. Is there a way to add them? Currently I could take .html(), then strip it out of all tags but manually, then swap them out for \n, but I think there should be a built in way.
Right now when I just try .text() on a node I get it's text but it lacks newlines where would be line breaks. Is there a way to add them? Currently I could take .html(), then strip it out of all tags but
manually, then swap them out for \n, but I think there should be a built in way.