problem description
Hi ladies and gentlemen:
now we have a problem. We need to batch process some tags under ID wzleftb. I hope the great god JS can take a look at it
replace all a tags with li tags
original html: to be processed
<div class="wzleftb" id="wzleftb">
<p style="text-align: center;">
<a href="data/102129t32lrueuonnruum1.jpg" target="_blank"><img src="data/102129t32lrueuonnruum1.jpg" /></a>
<a href="data/102129n8ir82wfvi9zd5c6.jpg" target="_blank"><img src="data/102129n8ir82wfvi9zd5c6.jpg" /></a>
<a href="data/102129s29jk02wpt0wrew5.jpg" target="_blank"><img src="data/102129s29jk02wpt0wrew5.jpg" /></a>
</div>
processed html: (replace all a tags with li tags)
<div class="wzleftb" id="wzleftb">
<li><img src="data/102129t32lrueuonnruum1.jpg" /></li>
<li><img src="data/102129n8ir82wfvi9zd5c6.jpg" /></li>
<li><img src="data/102129s29jk02wpt0wrew5.jpg" /></li>
</div>
Gods, I haven"t done my research for a long time, so I asked for help.