title: Javascript retrieve linebreaks from dom
body: <p>I have a text in a paragraph which breaks automatically due to a max p size. Is it possible to somehow extract those line-breaks afterwards from the dom?</p>
  
  <p>For example I have a text like:
  <code>This is an example text that is too long for a line and breaks</code>
  Which breaks after <code>is</code> in the dom.</p>
  
  <p>I'd like to generate an array like that: ['This is an example text that is', 'too long for a line and breaks']. And if possible i'd like to also get the dash if a word breaks into syllables.</p>
  
  <p>Thanks!</p>