How can I edit the source of HTML in the clipboard?
Found it! Here's how to get at the HTML source when there's some on your clipboard:
#!/usr/bin/env python
import gtk
print (gtk.Clipboard().wait_for_contents('text/html')).data
This helped.
This didn't work for me. My callback was never entered.