Does jQuery support html escaping of data retrieved from ajax call?
<p>Most <code>MVC</code> frameworks support escaping of server data, before putting them on the web page. I couldn't find any option in <code>jQuery</code>'s <code>ajax</code> method to do the same. In fact, I couldn't even find a native jQuery function to escape strings for proper display on the page (Putting the contents in a <code>div</code>, and calling <code>.html(</code>) on it, is not guaranteed to preserve white space). Why is it that this function is not available in jQuery, but you can find it in <code>underscore</code> and <code>prototype</code> libraries ?</p>
