title: Append HTML-escaped text: jQuery
body: <p>I'm used to using jQuery's <code>.append()</code> method to add text or HTML onto the end of a pre-existing element.  I'm currently using jQuery's <code>.text()</code> to escape strings that could potentially contain HTML.  Unfortunately, there doesn't seem to be a jQuery method that will append the results of the <code>.text()</code> method to an element instead of replacing its contents.</p>
  
  <p>Is there a way to append, instead of replace, this escaped text to an element?  Or is there a better way to escape strings containing HTML?</p>
  
  <p>Thanks.</p>
  
  <p><strong>- EDIT -</strong></p>
  
  <p>A little more context:  I'm building an HTML string dynamically, and so I'll need to be able to add multiple elements with escaped content programmatically.</p>