title: Replace all <> if they occur between quotation marks
body: <p>How can I update my regular expression to handle all occurrences of <code>&gt;</code> (that occur between quotation marks)?</p>
  
  <pre><code>\=(("|').*)&gt;(.*("|'))\im
  </code></pre>
  
  <p>Here is a working example: <a href="https://regexr.com/4rjnf" rel="nofollow noreferrer">https://regexr.com/4rjnf</a></p>
  
  <p>If I run my regex on the following string I only replace one occurrence not all.</p>
  
  <p>Source string:  <code>&lt;div attr='.foo &gt; .bar &gt; .baz'&gt;&lt;div&gt;</code><br>
  Result from my regex: <code>&lt;div attr='.foo &gt; .bar &amp;gt; .baz'&gt;&lt;div&gt;</code><br>
  My desired result: <code>&lt;div attr='.foo &amp;gt; .bar &amp;gt; .baz'&gt;&lt;div&gt;</code>  </p>