Welcome to the Pythonista Community Forums!

Pythonista is a Python programming environment for iOS. To learn more, head over to the Pythonista Website.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Support for HTML on the clipboard?
  • I’m trying to place custom HTML on the Pasteboard, for use as a signature in the Mail app among other things.

    (The signature uses a CSS background image with Retina 2x versions and other tricks which are lost if I just select and copy it out of another app’s UIWebView.)

    It appears that the built-in clipboard support in Pythonista is limited to text and images. Is there a way to extend this to the HTML data type using Python? If not, this is a feature request. :-)

    I think this explains what I’m trying to do:

    http://stackoverflow.com/questions/6566152/ios-how-to-copy-html-into-the-cut-paste-buffer
  • Currently not possible, sorry. I have some plans to extend the clipboard module with custom data types though, so perhaps it will be in the future...
  • Would love to work with HTML as well. I would like to Copy HTML from safari or another browser and then manipulate it. Right now I am using an old program "HTML Mail editor". It is the only one available to capture and paste HTML as HTML. I am saving HTML to dropbox, then trying to strip it and convert to Markdown. My upvote for this f.r. Thanks for your work.