View Full Version : Remove HTML tags with a certain CSS class applied

11-05-2009, 10:35 AM

I have a string with lots of HTML stored in it. Within the code there are some <span> tags with the class "es" applied to them. Is is possible to remove these tags, including removing all text contained within them. Here is an example:

<span class="es">Useless example text</span>

I basically want to remove all instances of these.

Your help would be much appreciated!


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum