The Mudcat Café TM
Thread #112265 Message #2373075
Posted By: treewind
24-Jun-08 - 05:27 AM
Thread Name: Tech: htmlesc.py: Mac script to escape text
Subject: RE: Tech: htmlesc.py: Mac script to escape text
Should work in Linux too.
It assumes you're using UTF-8 encoding for input, doesn't it? But that's the best choice anyway.
Sorry, but the clipboard interface is specific to Macs. It should be simple to create a Linux or Windows version, if one knows the appropriate code for grabbing and putting clipboard text on those platforms. In the meantime, however, I've created a Java version which is cross-platform; see this thread: