Hello
I want to parse some HTML server-side, and if a DIV has a particular class, we replace the contents of that div with some new information.
For example if we have:
<div class="was"><span class="replacevalA"><strong>£99.99</strong></span></div>
We might want to replace the £99.99 to be <em>£79.99</em>
leaving us with:
<div class="was"><span class="replacevalA"><em>£99.99</em></span></div>
The reason I've opted for class name is that we might have several replacevalA in the HTML as well as replacevalB too.
Hope that makes sense :)
Many thanks
Darren