PHP or Javascript: Simply Remove and Replace HTML Code

Maxx

New Member
I have this code on my page, but the link has different names and ids:\[code\] <div class="myclass"> <a href="http://www.example.com/?vstid=00575000&veranstaltung=http://www.example.com/page.html">Example Text</a> </div>\[/code\]how can I remove and Replace it to this:\[code\]<div class="myclass">Sorry no link</div>\[/code\]With PHP or Javascript? I tried it with str.replace Thank you!
 
Back
Top