&
次のようなものを含む div に動的に出力される URL がいくつかあります。
<div id="box">
<a href="http://domain.com/index.html&location=1">First URL</a>
<a href="http://domain.com/index.html&location=2">Second URL</a>
</div>
出力がこれになるように、 jQueryを使用して&
、代わりにのすべてのインスタンスを同等のHTMLエンティティに変換する方法はありますか?
<div id="box">
<a href="http://domain.com/index.html&location=1">First URL</a>
<a href="http://domain.com/index.html&location=2">Second URL</a>
</div>