我有这样的动态HTML:rebulid href标记与jQuery
<div class="msg_body">
<p>
some text... |URI=http://www.somesite.co.il/|some link|EURI| some text |URI=http://www.somesite.co.il/|some link|EURI| , some text...
</p>
我需要提取的URI的字符串和替换:
1. |URI= with [<a href"]
2. | with [>]
3. |EURI| with [</a>]
所以...我需要它像这样的蜂:
<p>some text... <a href="http://www.somesite.co.il/" target="_blank"></a>some link</a> some text <a href="http://www.somesite.co.il/" target="_blank">some link</a> , some text...</p>
我sta CK在这一点上:
$('.msg_body').find('p').text().replace('|URI=','<a href="');
我如何能做到这一点jQuery的?