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>
    <logevents lecontinue="20211227154416|8078" />
  </query-continue>
  <query>
    <logevents>
      <item logid="8088" ns="2" title="User:Catherine" pageid="0" type="rights" action="rights" user="Administrator" timestamp="2022-06-20T01:25:26Z" comment="">
        <rights new="confirmed-user" old="" />
      </item>
      <item logid="8087" ns="2" title="User:Catherine" pageid="0" userid="164" type="newusers" action="create2" user="Administrator" timestamp="2022-06-20T01:23:28Z" comment="Create Aquapedia Case Studues" />
      <item logid="8086" ns="2" title="User:Test3" pageid="0" userid="162" type="newusers" action="create2" user="Administrator" timestamp="2022-06-18T15:32:05Z" comment="" />
      <item logid="8085" ns="2" title="User:Testuser" pageid="2417" type="rights" action="rights" user="Administrator" timestamp="2022-06-16T18:35:49Z" comment="">
        <rights new="confirmed-user" old="" />
      </item>
      <item logid="8084" ns="2" title="User:Testuser" pageid="2417" type="patrol" action="patrol" user="Administrator" timestamp="2022-06-16T18:34:41Z" comment="">
        <patrol cur="9041" prev="0" auto="1" />
      </item>
      <item logid="8083" ns="2" title="User:Testuser2" pageid="0" userid="160" type="newusers" action="create2" user="Administrator" timestamp="2022-06-16T18:31:20Z" comment="test" />
      <item logid="8082" ns="2" title="User:Testuser" pageid="2417" userid="158" type="newusers" action="create2" user="Administrator" timestamp="2022-06-16T18:30:38Z" comment="test" />
      <item logid="8081" ns="4" title="AquaPedia:About" pageid="524" type="patrol" action="patrol" user="Administrator" timestamp="2021-12-27T15:59:12Z" comment="">
        <patrol cur="9040" prev="7297" auto="1" />
      </item>
      <item logid="8080" ns="0" title="Browse Cases" pageid="436" type="patrol" action="patrol" user="Administrator" timestamp="2021-12-27T15:49:37Z" comment="">
        <patrol cur="9039" prev="8208" auto="1" />
      </item>
      <item logid="8079" ns="0" title="Main Page" pageid="1" type="patrol" action="patrol" user="Administrator" timestamp="2021-12-27T15:46:51Z" comment="">
        <patrol cur="9038" prev="8215" auto="1" />
      </item>
    </logevents>
  </query>
</api>