Is it possible to extract the plaintext from a contenteditable div, including newlines? The jQuery $.text() method strips out newlines, which I need. The solution can use jQuery.
Is it possible to extract the plaintext from a contenteditable div, including newlines? The
Share
With a bit of tweaking, https://github.com/vorushin/jsHtmlToText was just what I needed.