jejacks0n/mercury — pull request #39 by JeanMertz (2011-10-19 10:24:33+00:00)
Title: Rewrite handlePaste method to handle sanitizing in a contained div

Here's a quick pull request to begin fixing the paste sanitizing. I am by no means a great javascript programmer but it's just here for you guys to take apart and implement it in a more elegant way.

This solves the problems with diff'ing the original content with the new content in order to find the pasted content and sanitize that. Also see issue #23.