Remove everything from a string between two sequences
<p>I have a string in Rails that contains HTML. For example, </p>

<pre><code>&lt;p&gt;01/28/2016 Green RED Horse!!123 456&lt;/p&gt;
&lt;a href="http://greenredhorse.com" style="margin-left:283px;margin-
top:50px;margin-bottom:150px;overflow:auto;position:absolute;"&gt;
&lt;img alt="Logo" src="http://greenredhorse.com/images/icons/logo.png" 
style="width:266px" /&gt; &lt;/a&gt;
&lt;p&gt;01/28/2017 RED Horse!!123 456&lt;/p&gt;
</code></pre>

<p>How would I go about removing the link tag and everything between its beginning and end from the string?</p>

<p>The end result should look like this.</p>

<pre><code>&lt;p&gt;01/28/2016 Green RED Horse!!123 456&lt;/p&gt;
&lt;p&gt;01/28/2017 RED Horse!!123 456&lt;/p&gt;
</code></pre>

<p>In short: How can I delete everything between <code>&lt;a</code> and <code>&lt;/a&gt;</code> inclusively. Without changing the rest of the string.</p>