replacing <br> with a space with jquery
<p>I have the following html</p>

<pre><code>&lt;ul&gt;
    &lt;li&gt;
        &lt;a href="#"&gt;
            Cross&lt;br&gt;Section
        &lt;/a&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I tried the following</p>

<pre><code>$('ul li a').text().replace('&lt;br&gt;', '&amp;nbsp;');
</code></pre>

<p>but it doesnt work</p>

<p>Could someone assist?</p>
