I'm trying to find a way to have an xml file sweep for acronyms from a list. (i.e., the xml file finds acronyms that match a list and applies the correct markup tags).
If anyone has seen anything like this, please help.
Thanks in advance.
PS. In case anyone doesn't know about this feature, the <acronym> and <abbr> tags work in Chimera and others, but not IE for Mac (because IE for Mac sucks).
I'm not sure what you mean by "having an XML file sweep...." Surely an XML file can't "do" anything, can it?
If you simply want to strip out these tags to make Explorer happy then this ought to do the trick:
$clean_xml = preg_replace('!</?(acronym|abbr)[^>]*>!i', '', $my_xml);
| slur was here
check out my creative music software