title: How to remove specific tag with class in rails?
body: <p>I am working in Ruby on Rails application, How can I remove specific html tag with some attribute as shown as below :-</p>
  <pre><code>post = Post.find(1646).content
  
   =&gt; &quot;&lt;p&gt;this is just another update&lt;/p&gt;&lt;p data-f-id=\&quot;pbf\&quot; style=\&quot;text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\&quot;&gt;Powered by &lt;a href=\&quot;any href link&quot; title=\&quot;xyz\&quot;&gt;remove it&lt;/a&gt;&lt;/p&gt;&quot;
  </code></pre>
  <p>I have to totally remove this below paragraph from above content:-</p>
  <pre><code>&lt;p data-f-id=\&quot;pbf\&quot; style=\&quot;text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\&quot;&gt;Powered by &lt;a href=\&quot;any href link&quot; title=\&quot;xyz\&quot;&gt;remove it&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  <p>How can I identify this <code>&lt;p data-f-id=\&quot;pbf\&quot;</code> with using regex or something else. Any help would be appreciated. :)</p>