how to use javascript replace all of it?
<p>the style is <code>@XXX</code> 
now i want to replace all of it to <code>&lt;a href='XXX'&gt;@XXX&lt;/a&gt;</code>.
how should i do? thank you.
XXX is the url</p>
