so I need to inject an ‘inlineAssetLink’ class into an anchor tag that is part of a paragraph, but a class of ‘blockAssetLink’ into an anchor tag that is inside an otherwise empty paragraph.
Not sure this is even possible with xpath, but the content comes from a WYSIWYG editor in cms and I’d like to do this server-side rather than with javascript.
Already using DOMXPath to manipulate other parts of content so it would be nice to do the same for this.