title: Get Rid of Spaces between > and <
body: <p>I use the following code:</p>
  
  <pre><code>    $page_entire_code =~ s/&gt; +?&lt;/&gt;&lt;/g;
  </code></pre>
  
  <p>to remove spaces between <code>&gt;</code> and <code>&lt;</code> in my HTML web pages. However, I noticed that it messes up my web page's breadcrumbs. For example:</p>
  
  <pre><code>&lt;div id="breadcrumb" itemprop="breadcrumb"&gt;
    &lt;b&gt;
      You are here: &lt;a href="http://www.romancestuck.com/"&gt;RomanceStuck&lt;/a&gt; &gt; &lt;a href="http://www.romancestuck.com/marriage/love-and-marriage.htm"&gt;Marriage&lt;/a&gt; &gt; 11 Tips for Improving a Strained Relationship
    &lt;/b&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>gets compressed to:</p>
  
  <pre><code>&lt;div id="breadcrumb" itemprop="breadcrumb"&gt;&lt;b&gt;You are here: &lt;a href="http://www.romancestuck.com/"&gt;RomanceStuck&lt;/a&gt; &gt;&lt;a href="http://www.romancestuck.com/marriage/love-and-marriage.htm"&gt;Marriage&lt;/a&gt; &gt; 11 Tips for Improving a Strained Relationship&lt;/b&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The <code>&gt;</code> after the <code>RomanceStuck</code> link doesn't have a space after it like it should. How can I change my Perl substitution line so that it doesn't mess up my breadcrumbs? I was thinking maybe I could say replace <code>&gt;</code> that come after any characters except a space.</p>
  
  <p>Thanks!</p>