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="&lt;i&gt;HotCat&lt;/i&gt;: easily add / remove / change a category on a page, with name suggestions &lt;small&gt;[&lt;a rel=&quot;nofollow&quot; class=&quot;external text&quot; href=&quot;http://commons.wikimedia.org/wiki/Help:Gadget-HotCat&quot;&gt;documentation&lt;/a&gt;]&lt;/small&gt;">
        <metadata>
          <settings category="interface-gadgets">
            <rights>
              <right>edit</right>
              <right>purge</right>
            </rights>
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-HotCat.js</script>
            </scripts>
            <styles />
            <dependencies />
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="Reader" desc="&lt;i&gt;Reader&lt;/i&gt;: a read-mostly display, especially suited for narrow phone/tablet displays &lt;small&gt;(requires &lt;b&gt;Vector&lt;/b&gt; skin)&lt;/small&gt;">
        <metadata>
          <settings category="interface-gadgets">
            <rights />
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-Reader.js</script>
            </scripts>
            <styles />
            <dependencies />
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="Author" desc="&lt;i&gt;Author&lt;/i&gt;: enable convenience features for wiki authoring">
        <metadata>
          <settings category="interface-gadgets">
            <rights>
              <right>edit</right>
            </rights>
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-Author.js</script>
            </scripts>
            <styles />
            <dependencies />
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="Mailable" desc="Add a mail icon to user pages of people you can email through the wiki">
        <metadata>
          <settings default="" category="appearance">
            <rights>
              <right>edit</right>
              <right>createpage</right>
            </rights>
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-Mailable.js</script>
            </scripts>
            <styles />
            <dependencies>
              <dependency>mediawiki.util</dependency>
            </dependencies>
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="mySandbox" desc="Add a &quot;Sandbox&quot; link to the personal toolbar area.">
        <metadata>
          <settings default="" category="appearance">
            <rights>
              <right>edit</right>
              <right>createpage</right>
            </rights>
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-mySandbox.js</script>
            </scripts>
            <styles />
            <dependencies>
              <dependency>mediawiki.util</dependency>
              <dependency>mediawiki.Title</dependency>
              <dependency>mediawiki.Uri</dependency>
            </dependencies>
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="Links" desc="Add a &quot;Links&quot; link to the Toolbox providing links to current revision or a shorter URL">
        <metadata>
          <settings default="" category="appearance">
            <rights />
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-Links.js</script>
            </scripts>
            <styles />
            <dependencies />
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="Subpages" desc="Add a &quot;Subpages&quot; link to the Toolbox">
        <metadata>
          <settings default="" category="appearance">
            <rights />
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-Subpages.js</script>
            </scripts>
            <styles />
            <dependencies>
              <dependency>mediawiki.util</dependency>
            </dependencies>
            <messages />
          </module>
        </metadata>
      </gadget>
      <gadget id="CollabOERate" desc="&lt;i&gt;CollabOERate&lt;/i&gt;: enable live editing and navigation collaboration (&lt;i&gt;highly experimental&lt;/i&gt;, &lt;i&gt;&lt;b&gt;requires modern browser&lt;/b&gt;&lt;/i&gt;)">
        <metadata>
          <settings category="experimental">
            <rights />
            <skins />
          </settings>
          <module>
            <scripts>
              <script>Gadget-CollabOERate.js</script>
            </scripts>
            <styles />
            <dependencies />
            <messages />
          </module>
        </metadata>
      </gadget>
    </gadgets>
  </query>
</api>