title: Get paragraph text inside an element
body: <p>I want to have the text value from a    <code>&lt;p&gt;</code> inside a    <code>&lt;li&gt;</code> element. </p>
  
  <p><em>html</em>:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li onclick="myfunction()"&gt;
      &lt;span&gt;&lt;/span&gt;
      &lt;p&gt;This Text&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p><em>javascript</em>:</p>
  
  <pre><code>function myfunction() {
    var TextInsideLi = [the result of this has to be the text inside the paragraph"];
  }
  </code></pre>
  
  <p>How to do this?</p>