title: Extract text between html elements
body: <p>Is there a way to extract text between html tags? For example, if I had the names of cities in California, each listed separately within paragraph tags, could I print out only the text that appears inside the paragraph tags? </p>
  
  <pre><code>&lt;div class="cities"&gt;
      &lt;div&gt;&lt;p&gt;Los Angeles&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
      &lt;div&gt;&lt;p&gt;San Francisco&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
      &lt;div&gt;&lt;p&gt;San Diego&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
      &lt;div&gt;&lt;p&gt;Santa Barbara&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
      &lt;div&gt;&lt;p&gt;Davis&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
      &lt;div&gt;&lt;p&gt;San Jose&lt;/p&gt;&lt;h5&gt;Description&lt;/h5&gt;&lt;/div&gt;
  &lt;/div&gt;    
  </code></pre>
  
  <p>I want to target all of the cities in the paragraph tags but not the descriptions in the h5 tags. The expected output would be:</p>
  
  <p>Los Angeles
  San Francisco 
  San Diego
  Santa Barbara
  Davis 
  San Jose</p>