title: Extract Text between HTML tags with sed or grep
body: <p>I have a Problem. I want to get two parts of this html in values with the sed or grep command. How i can extract both of them?</p>
  
  <p>test.html:</p>
  
  <pre><code>&lt;html&gt;
   &lt;body&gt;
    &lt;div id="foo" class="foo"&gt;
     Some Text.
      &lt;p id="author" class="author"&gt;
       &lt;br&gt;
       &lt;a href="example.com"&gt;bar&lt;/a&gt;
      &lt;/p&gt;
    &lt;/div&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>script.sh</p>
  
  <pre><code>#!/bin/bash
  
  author=$(sed 's/.*&lt;p id="author" class="author"&gt;&lt;br&gt;&lt;a href="*"&gt;\(.*\)&lt;\/a&gt;&lt;\/p&gt;.*/\1/p' test.html)
  quote=$(sed 's/.*&lt;div id="foo" class="foo"&gt;\(.*\)&lt;\/div&gt;.*/\1/p' test.html)
  </code></pre>
  
  <p>Under the line i want only the text in the values. without the html tags.
  But my script doesent works.. </p>