These scripts turn raw HTML from a Google Doc into stripped-down HTML and text which can be pasted into CiviCRM, as described at wiki.occupy.net.
Python 2.7 and BeautifulSoup
cat sample-raw.html | ./html-sanitize.py > newsletter.html
cat sample-raw.html | ./html-strip.py > newsletter.txt
Or just:
./docs-to-civi.sh sample-raw.html
Sample code for collecting emails on an arbitrary site and posting them to the CiviCRM instance at OccupyWallStreet.net.
jQuery
Copy the code from post-to-civi.html. Replace the profileId and groupId in the Javascript with the appropriate values from Civi. Paste the code into the desired place in the source of your website.