I\'m looking for a way to sanitize input that I paste into the browser, is this possible to do with jQuery?
I\'ve managed to come up with this so far:
document.addEventListener('paste', function(e){ if(e.clipboardData.types.indexOf('text/html') > -1){ processDataFromClipboard(e.clipboardData.getData('text/html')); e.preventDefault(); ... } });