jQuery map breaking up a plain string and adding <br> when not needed
<p>I am using the following: </p>

<pre><code>var items = $.map(json.errors, function (error) {
return error + '&lt;/br&gt;';
}).join(''); 
</code></pre>

<p>json.errors can be <code>IEnumerable&lt;string&gt;</code> or just string.</p>

<p>When json.errors is IEnumerable then items is populated with text with a <code>&lt;br&gt;</code> between each error message. However when json.errors is a string then items is populated with the error string with a <code>&lt;br&gt;</code> after every character of the string.</p>

<p>Is there some way that I could fix the problem for when json.errors is just a plain string?</p>
