title: Return HTML code in javascript?
body: <p>I'm fairly new to javascript and I'm wondering how I could get this piece of code (part of a bigger whole) to do what I want. I'd like to add HTML to the prhases 'articles in shopping cart' and 'article in shopping cart'. Is this possible? Many thanks.</p>
  
  <p>I don't mean styling (bold or italic), this is what i'd want it to return:</p>
  
  <pre><code>return quantity + (quantity == 1 ? ' 
    article in shopping cart &lt;span class="simpleCart_quantity"&gt;&lt;/span&gt;- 
   &lt;span class="simpleCart_total"&gt;&lt;/span&gt;
   &lt;a href="shoppingcart.html"&gt;Show&lt;/a&gt;' : 
   ' articles in shopping  cart 
    &lt;span class="simpleCart_quantity"&gt;&lt;/span&gt;-
    &lt;span class="simpleCart_total"&gt;&lt;/span&gt;
    &lt;a href="shoppingcart.html"&gt;Show&lt;/a&gt;');
  </code></pre>
  
  <p>I know this is not possible, how is it possible?</p>
  
  <pre><code>quantity: function () {
      var quantity = 0;
      simpleCart.each(function (item) {
          quantity += item.quantity();
      });
      if (quantity == 0) {
          return 'Your shopping cart is empty';
      } else {
          return quantity + (quantity == 1 ? ' article in shopping cart' : ' articles in shopping cart');
      }
  },
  </code></pre>