JQuery Wie ersetze ich Strings in einem Textbereich?

Aktueller Textbereich:

<textarea id="event_content">
This text area could be full of information..www.london2012.com
And might contain upto 5 links that all need updating.
www.rio2016.org

Link already converted. this should be left.
<a href="http://www.thetimes.co.uk" target="_blank">www.thetimes.co.uk</a>
</textarea>

Gewünschtes Textfeld nach Abfrage: Alle zu bereinigenden / zu ersetzenden Links mit Tags und Zielattr

<textarea id="event_content">
This text area could be full of information
<a href="http://www.london2012.com" target="_blank">www.london2012.com</a>
And might contain upto 5 links that all need updating.
<a href="http://www.rio2016.org" target="_blank">www.rio2016.org</a>

Link already converted. this should be left.
<a href="http://www.thetimes.co.uk" target="_blank">www.thetimes.co.uk</a>
</textarea>

21. Juli 2012 -Ωmega Code funktionierte ein Vergnügen, danke, könnte aber verbessert werden, indem bereits konvertierte Links belassen werden?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage