title: sed/regex: How to match a '<' or '>' in a string
body: <p>I'm looking to match all less than ('&lt;') or greater than ('>') signs in a file using sed. I only want to match the single character</p>
  
  <p>My goal is to replace them with <code>' &lt;'</code> and <code>'&gt; '</code> (ensure they have white space around them so I can parse them easier) respectively.</p>
  
  <p>For example, it would match:
  (without space within the tags)
  <br/></p>
  
  <pre><code>&lt; p &gt;Hey this is a paragraph.&lt; /p &gt;&lt; p &gt;And here is another.&lt; /p &gt;
  </code></pre>
  
  <p>.. and turn it into (note the spaces)
  <br/></p>
  
  <pre><code> &lt; p &gt; Hey this is a paragraph. &lt; /p &gt;  &lt; p &gt; And here is another. &lt; /p &gt; 
  </code></pre>
  
  <p><br/><br/>
  Here's what my initial (wrong) guess was:</p>
  
  <pre><code>sed 's/&lt;{1}|&gt;{1}/ &lt;&gt; /' ...
  </code></pre>
  
  <p><br/>
  It matches the whole word/line, which is not desired, and it also does not replace correctly. </p>
  
  <p>Anyways, any help would be appreciated! Thanks!</p>