Textarea - new lines to br tags and then special characters
<p>I have a text area with the following id: <code>#openingHours</code></p>

<p>The text area contains information, for example:</p>

<pre><code>&lt;textarea id="openingHours"&gt;
    Mon-Fri 8am - 6pm
    Sat-Sun 9am - 3pm
&lt;/textarea&gt;
</code></pre>

<p>I want to get the value of the textarea and replace new lines with break tags.</p>

<pre><code>Mon-Fri 8am - 6pm&lt;br/&gt;Sat-Sun 9am - 3pm
</code></pre>

<p>Notice how it is all on one line.</p>

<p>How can I achieve this? All of the data must be on the same line, separated by <br /> tags and html encoded to special characters.</p>

<p>Thank you.</p>
