title: Remove and replace with PostgreSQL
body: <p>With PostgreSQL I want to remove the image classes. The image classes has different ones. This is what I want to achieve of some sort:</p>
  
  <pre><code>&lt;img src="#" class="one two three" alt=""&gt;
  </code></pre>
  
  <p>So that the result is:</p>
  
  <pre><code>&lt;img src="#" class="" alt=""&gt;
  </code></pre>
  
  <p>So I can then do a UPDATE:</p>
  
  <pre><code>UPDATE posts SET content = 'class="new-class"' WHERE content = 'class=""'
  </code></pre>
  
  <p>I don't think the above is a good way to do it though. </p>