title: preprocessing html data with powershell
body: <p>i have some html source code of customer data that needs to be cleaned from html tags before deployed with a line joining string split.</p>
  
  <p>i want to be able to target specific types of information. 
  if for example a customer has a list of categories on his page.
  each 'category' sits,  perched inside of an easily distinguishable tag:</p>
  
  <pre><code>&lt;span _ngcontent-jal-c67="" class="category-name"&gt;Cryptocurrency&lt;/span&gt;
  
  </code></pre>
  
  <p>would it be possible to remove everything else that is not nested inside a similar html tag?</p>
  
  <p>let's say, for exampple i want evrything thats occurs inside of <code>&lt;span *&gt;*&lt;/span&gt;</code>. so that every non <code>&lt;span&gt;&lt;/span&gt;</code> tag and its contents would be removed. the contents of all the <code>&lt;span ***&gt;***&lt;/span&gt;</code> would stay, without the tag.
  is that something i could do in powershell?
  let's avoid paste.exe and cygwin type of stuff. i'm looking for standard native windows approach (cmd or powershell). </p>
  
  <p>again, i want to remove all tags.</p>
  
  <p>just the contents that i don't remove should be limited to those found in a specific tag. like ,<code>&lt;span _ngcontent-jal-c68="" class="category-name"&gt;Shopping&lt;/span&gt;</code> 
  everything that fits the <code>&lt;span *&gt;*&lt;/span&gt;</code> profile</p>
  
  <p>leave only the contents. no tag.</p>
  
  <p>from: <code>&lt;span _ngcontent-jal-c32="" class="category-name"&gt;Home and Graden&lt;/span&gt;</code></p>
  
  <p>to: <code>Home and Graden</code></p>
  
  <p>i'm really looking for an answer for how to do this in powershell without needing to install anything or to make any interesting changes to the OS (windows10)</p>