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>
    <search>
      <p ns="0" title="Streaming to a TV set" snippet="...ly the default. It is also possible to treat the TV as a separate display, &lt;span class=&#039;searchmatch&#039;&gt;meaning&lt;/span&gt; you can use the main laptop for working on if it’s not too distracting fr&#10;" size="3359" wordcount="601" timestamp="2022-12-12T10:07:26Z" />
    </search>
  </query>
</api>