Extracting text and HTML from the contents of an element using Web::Scraper
<p>Given the following HTML snippet:</p>

<pre><code>&lt;span itemprop="streetAddress"&gt;59 Court St.&lt;br&gt;City Hall&lt;/span&gt;
</code></pre>

<p>I want to extract the contents of the <code>span</code> including the <code>&lt;br&gt;</code> tag. I can extract the text with the following:</p>

<pre><code> process 'span[itemprop="streetAddress"]', address =&gt; 'TEXT';
</code></pre>

<p>But this leaves out the <code>&lt;br&gt;</code> tag.</p>