Skip to content

Instantly share code, notes, and snippets.

/*
* XSS filter
*
* This was built from numerous sources
* (thanks all, sorry I didn't track to credit you)
*
* It was tested against *most* exploits here: http://ha.ckers.org/xss.html
* WARNING: Some weren't tested!!!
* Those include the Actionscript and SSI samples, or any newer than Jan 2011
*
// Ordenação
$('#maisvotados').on('click', function(){
array = new Array();
var i = 1;
$('.item-votacao').each(function(){
i+=1;
array[($(this).data('votos')+1) +''+ i] = $(this);
});