[dancer-users] JSON serializer

Mike Cu mike_cu80 at yahoo.com
Mon Oct 5 07:22:11 BST 2015


I have an Ajax call like :
$( "#City" ).selectmenu({
                         select: function( event, ui ) {
                         $.ajax({     url: '/cities',
                         type: "POST",
                         data: {'City':$("#City" ).val()}}).success(function(data){
                         $("#display").html(data);});
                     },


  });
does the default JSON serializer escape the data to prevent XSS, or should I escape it manually? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151005/22d5b177/attachment.html>


More information about the dancer-users mailing list