请教该如何用正则把a标签的 < " >换成@ # $,而不影响a href的链接和其他标签
不允许单独把a标签提取出来替换
<div> <div class="bt">2222</div> <ul> <li>1</li> <li>2</li> </ul> <a href="https://segmentfault.com">ok</a></div>
结果:
<div> <div class="bt">2222</div> <ul> <li>1</li> <li>2</li> </ul> @a href=# https://segmentfault.com # $ ok @/a$ @a href=# https://segmentfault.com # $ acb @/a$ @a href=# https://segmentfault.com # $ 123 @/a$ </div>