title: How to add target="_blank" on the existing <a href=""> </a>?
body: <p>I have a variable that contains the following text in PhP:</p>
  
  <pre><code>$description = "Flash &lt;a href=\"http://www.aaa.com/\"&gt;this coupon&lt;/a&gt; &lt;br &gt; &lt;a href="http://www.ggg.com/"&gt;Visit here&lt;/a&gt; for details &lt;br &gt;";
  </code></pre>
  
  <p>How do i add the </p>
  
  <blockquote>
    <p>target="_blank"</p>
  </blockquote>
  
  <p>that missing on the <code>$description</code> variable?</p>
  
  <p><strong>So the result will becomes the following:</strong></p>
  
  <pre><code>$description = "Flash &lt;a href=\"http://www.aaa.com/\" target="_blank"&gt;this coupon&lt;/a&gt; &lt;br &gt; &lt;a href="http://www.ggg.com/" target="_blank"&gt;Visit here&lt;/a&gt; for details &lt;br &gt;";
  </code></pre>
  
  <p>I am looking for solution that the variable $description was recorded by user accidentally. But I need the system to find out and correct it by adding the target="blank" into the existing variable and update the record.</p>