$.get('#', function(html) {
var formData = new FormData();
formData.append('out', 'json');
formData.append('content', html);
$.ajax({
url: "//html5.validator.nu/",
processData: false,
contentType: false,
data: formData,
dataType: "json",
type: "POST",
success: function(res) {
console.log(res);
},
error: function(error) {
console.warn(error');
}
});
});