<p dir="auto">Right now,you need follow code to handle xml content.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CssSelector::disableHtmlExtension();
$xxx=$crawler-&gt;filter('response&gt;tradeBase&gt;total_fee')-&gt;text();"><pre class="notranslate"><code class="notranslate">CssSelector::disableHtmlExtension();
$xxx=$crawler-&gt;filter('response&gt;tradeBase&gt;total_fee')-&gt;text();
</code></pre></div>
<p dir="auto">I think we can detect xml in Crawler,and call CssSelector::disableHtmlExtension(); in filter when handle xml.</p>
<p dir="auto">... but that's not really possible when using it from BrowserKit as the Crawler is created directly.</p>
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15599538" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8286" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/8286/hovercard" href="https://github.com/symfony/symfony/pull/8286">#8286</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In functional test, since the crawler is instanciated by the de browser kit (which 
know the content-type), Can we imagine the browser kit call for us
disableHtmlExtension or enableHtmlExtension"><pre class="notranslate"><code class="notranslate">In functional test, since the crawler is instanciated by the de browser kit (which 
know the content-type), Can we imagine the browser kit call for us
disableHtmlExtension or enableHtmlExtension
</code></pre></div>