title: Javascript: How to get array of strings of text within p tags
body: <p>Lets say I have string with a lot of p tags in it...</p>
  
  <pre><code>var myString = "&lt;p&gt;Some text.&lt;/p&gt;&lt;p&gt;Some more. Some more text.&lt;/p&gt;&lt;p&gt;And even some more text.&lt;/p&gt;";
  </code></pre>
  
  <p>..how do I get an array, each item in the array is a string of text that was in the p tags:</p>
  
  <pre><code> [
      "Some text.",
      "Some more. Some more text.",
      "And even some more text."
  ]
  </code></pre>
  
  <p>One way I suppose would be to get rid of the p tags...</p>
  
  <pre><code>   var stringWithOutTags = myString.replace(/(&lt;p&gt;|&lt;\/p&gt;)/g, " ");
  </code></pre>
  
  <p>..And then use .split() to get out each sentence. But I don't really want to get out each sentence, just text w.in p tags</p>
  
  <pre><code>var stringAsArray = stringWithOutTags.split(".");
  </code></pre>