title: strpos remove text/html
body: <p>I'm parsing an XML file, the creators of it stuck in a bunch social media info which is completely useless to me.  I'd like to remove it before inserting the data into the db.</p>
  
  <p>Problem is that its not all the same, some occurrences are :</p>
  
  <p><code>Be a Social Butterfly! Connect &amp; Learn More Below:
  Website • Facebook • Yelp</code></p>
  
  <p>Some have more social sites listed and some have less.  Id really like to remove that entire part.  also this is a vardump after running strip_tags.  The original looks like this:</p>
  
  <pre><code>&lt;strong&gt;Be a Social Butterfly! Connect &amp; Learn More Below:&lt;/br&gt;&lt;/strong&gt;
  &lt;a target="_blank" href="http://www.kiran-indian.com"&gt;Website&lt;/a&gt; •&lt;a target="_blank" href="http://www.facebook.com/pages/Kiran-Indian-Cuisine/55785994435"&gt; Facebook&lt;/a&gt; • &lt;a target="_blank" href="http://www.yelp.com/biz/kiran-indian-cuisine-new-york"&gt;Yelp&lt;/a&gt;
  </code></pre>
  
  <p>I used preg_replace to get rid of th entire sentence "be a social butterfly...." with</p>
  
  <pre><code>$description = strip_tags(preg_replace('/\bBe a Social Butterfly! Connect &amp; Learn More Below\b/', '', $value['redemptionLocations']['description']));
  </code></pre>
  
  <p>A buddy of mine suggested the use of strpos to find first/last parts and substr to remove everything in between, but sadly I am not advanced  enough to figure out how to do that.</p>
  
  <p>Thanks in advance!</p>
  
  <p>description field:</p>
  
  <pre>       
  Food always does one thing. It helps keep you alive. But it can do more. It can be an experience that educates, transports, and invigorates you. Lunch or dinner at &lt;a target="_blank" href="http://www.kiran-indian.com/home.htmls"&gt;Kiran Indian Cuisine&lt;/a&gt; a lot more than a chance to keep from starving for another day --- it&#8217;s a chance to depart from the norm with delicious homemade dishes using the freshest of ingredients and the most aromatic seasoning available. They are open 7 days a week from 11 a.m. to 11 p.m. and accept all the major credit cards, plus when you order online from the surrounding area, delivery is 100% free of charge.&lt;/br&gt;&lt;/br&gt;
  
  &lt;strong&gt;Be a Social Butterfly! Connect &amp; Learn More Below:&lt;/br&gt;&lt;/strong&gt;
  &lt;a target="_blank" href="http://www.kiran-indian.com"&gt;Website&lt;/a&gt; &#8226;&lt;a target="_blank" href="http://www.facebook.com/pages/Kiran-Indian-Cuisine/55785994435"&gt; Facebook&lt;/a&gt; &#8226;  &lt;a target="_blank" href="http://www.yelp.com/biz/kiran-indian-cuisine-new-york"&gt;Yelp&lt;/a&gt;
  
  </pre>
  
  <p>seems pasting that code into here automatically adjusts asci/etc.</p>