title: jquery find http elements in plain text and convert it to a link
body: <p>I don't know if this is possible but I have a piece of plain text which always includes:</p>
  
  <pre><code>http://www.royalmail/portal/etc/etc/track.php?trackNumber=123345323
  </code></pre>
  
  <p>When dragged to my page from the database this obviously does not render as a link. Is there any way to select this piece of text (ie via the <code>http://</code>) and at the most basic wrap it with anchor tags - or more complexly - retrieve the address, wrap the address with anchor tags, and change the original <code>http://</code> text to something more understandable such as 'Track Parcel'</p>
  
  <p>It should be noted that there could be numerous tracking references looped out at once.</p>
  
  <p>My containing HTML is as follows</p>
  
  <pre><code>&lt;div class="message_holder"&gt;
                  &lt;div class="mess_head" style="width:110px;"&gt;
                      &lt;p&gt;&lt;strong&gt;Sender: &lt;/strong&gt;&lt;? echo $row11['sender'];?&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="mess_head" style="width:450px;"&gt;
                      &lt;p&gt;&lt;strong&gt;Subject: &lt;/strong&gt;&lt;span class="red"&gt;&lt;? echo $row11['subject'];?&gt;&lt;/span&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="mess_head" style="width:150px;"&gt;
                      &lt;p&gt;&lt;strong&gt;Date Sent: &lt;/strong&gt;&lt;? echo date('d/m/Y, H.ia', $row11['date_sent']);?&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="mess_head" style="width:200px;"&gt;
                      &lt;p&gt;&lt;strong&gt;Message ID: &lt;/strong&gt;&lt;? echo $row11['message_id'];?&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="mess_body"&gt;
                      &lt;p&gt;&lt;? echo html_entity_decode($row11['message']);?&gt;&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>The plain text links will all show up in the 'mess_body' class. I have tried using <code>html_entity_decode()</code> but this did not do the trick. If there is an easy way to do this via PHP rather than JQuery it could be simpler.</p>