Removing line breaks in ordered lists using jquery
<p>Am getting data from a webservice which is being displayed in the format below</p>

<p><code>&lt;ol&gt;\r\n&lt;li&gt;Combine garlic, mustard, chili powder, cayenne pepper, salt and thyme in a    small bowl.&lt;/li&gt;\r\n&lt;/ol&gt;</code></p>

<p>I've been tearing my hair out trying to remove the \r\n but i cant seem to do so. Because there in between elements and not in the content most jquery functions arent working. Am trying out something like:</p>

<pre><code>$("*").each(function () { 
  if ($(this).children().length == 0) { 
    $(this).html($(this).html().replace('&lt;ol&gt;\\r\\n&lt;li&gt;','&lt;ol&gt;&lt;li&gt;')); 
  }
});
</code></pre>

<p>Doesn't work. Any ideas?</p>
