我有我的网页上的代码,但链接有不同的名称和ID:PHP或Javascript:简单地删除和替换HTML代码
<div class="myclass">
<a href="http://www.example.com/?vstid=00575000&veranstaltung=http://www.example.com/page.html">
Example Text</a>
</div>
我怎样可以删除,并将其替换为这个:
<div class="myclass">Sorry no link</div>
使用PHP还是Javascript?我试过用str.replace
谢谢!
何时以及何时生成此html? – 2010-08-24 10:48:34