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-continue>
    <alllinks galcontinue="Bastok_Markets_S_Event_IDs|44" />
  </query-continue>
  <query>
    <pages>
      <page pageid="8" ns="0" title="Item IDs" />
      <page pageid="24" ns="0" title="Basic Item IDs" />
      <page pageid="39" ns="0" title="ID References" />
      <page pageid="44" ns="0" title="Event IDs" />
      <page pageid="289" ns="0" title="How to Make a Quest" />
      <page pageid="3927" ns="0" title="Advanced Scripting" />
      <page pageid="3935" ns="0" title="Database" />
    </pages>
  </query>
</api>