WIRIS Editor works with MathML but under some circumstances it modifies slightly the XML encoding.
This is done when the application that uses WIRIS editor does not allow inserting XML. For example, Moodle filters some HTML tags (APPLET, OBJECT, EMBED, etc.) and all unrecognized XML tags, and so it removes any MathML formula. This also occurs when the MathML appears inside an HTML attribute (for example, the SRC attribute of an IMG tag) and the browser, wrongly, tries to parse it.
In these situations, the 5 reserved characters of XML are replaced by other characters as shown in the following table:
|Original XML character||Replacing character|
|< (#3C)||« (#AB)|
|> (#3E)||» (#BB)|
|& (#26)||§ (#A7)|
|" (#22)||¨ (#A8)|
|' (#27)||´ (#B4)|
|Original XML fragment||Replaced XML fragment|
Then, recovering the MathML from the modified version is as simple as undoing the replacement. We provide as attached file an XSLT that does this replacement.