You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or
API help for more information.
<?xml version="1.0"?>
<api>
<query>
<gadgets>
<gadget id="HotCat" desc="<i>HotCat</i>: easily add / remove / change a category on a page, with name suggestions <small>[<a rel="nofollow" class="external text" href="http://commons.wikimedia.org/wiki/Help:Gadget-HotCat">documentation</a>]</small>" />
<gadget id="Reader" desc="<i>Reader</i>: a read-mostly display, especially suited for narrow phone/tablet displays (requires <b>Vector</b> skin) <a href="/MediaWiki:Reader" title="MediaWiki:Reader">Configure activation width</a>" />
<gadget id="Author" desc="<i>Author</i>: enable convenience features for wiki authoring" />
<gadget id="Mailable" desc="Add a mail icon to user pages of people you can email through the wiki" />
<gadget id="mySandbox" desc="Add a "Sandbox" link to the personal toolbar area." />
<gadget id="Links" desc="Add a "Links" link to the Toolbox providing links to current revision or a shorter URL" />
<gadget id="Subpages" desc="Add a "Subpages" link to the Toolbox" />
<gadget id="CollabOERate" desc="<i>CollabOERate</i>: enable live editing and navigation collaboration (<i>highly experimental</i>, <i><b>requires modern browser</b></i>)" />
</gadgets>
</query>
</api>