Quote:
Originally Posted by phossler
and thought that your PI is smart and could delete the class="something" only inside <img> tags
|
It wouldn't work for that case even if the img tag was added. You can delete a tag (and its closing tag), you can change a tag to a different tag, and you can change all attributes of a tag to something else ... but the plugin doesn't currenty have the sophisication to alter/delete one
particular attribute of a tag.
When it comes to attributes, you can either wipe them completely, copy the existing ones to a new tag, or you can replace all the attributes with something else (static), but you can't modify/delete one attribute while retaining the rest. I'm not "capturing" the attributes of each tag processed for reuse in a replace function.
In other words: if you wanted to delete the class attribute of all img tags of the class "blahblahblah", you'd have to delete ALL the attibutes of img tags of the class "blahblahblah". Probably not very handy.