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="site" desc="&lt;i&gt;Site&lt;/i&gt;: General utilities needed by the templates and portals of this wiki." />
      <gadget id="Navigation_popups" desc="Всякая навигационная шляпа, типа показ артиклей по наведению мыши." />
      <gadget id="wikEd" desc="Какой-то ебически навороченный редактор, с функцией undo/redo. Разбирайтесь если хотите." />
      <gadget id="HotCat" desc="&lt;a href=&quot;/w/index.php?title=W:WP:HOTCAT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;W:WP:HOTCAT (страница не существует)&quot;&gt;HotCat&lt;/a&gt;, Легко добавляет/меняет категории страницы в окошке &lt;small&gt;&amp;#91;&lt;a href=&quot;/w/index.php?title=%D0%A4%D0%B0%D0%B9%D0%BB:HotCat.png&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Файл:HotCat.png (страница не существует)&quot;&gt;example&lt;/a&gt;]&lt;/small&gt;" />
      <gadget id="ajaxPreview" desc="Быстрый предпросмотр бок о бок при редактировании. Включается в настройках Редактирование." />
      <gadget id="enwp-boxes" desc="Эту шляпу трогать нельзя." />
    </gadgets>
  </query>
</api>