html-source-from-email
Extracting the HTML source code of an HTML email from Apple Mail is not just copy & paste. The copied code needs to be cleaned of special characters first.
This repository is providing instructions on how to clean copied HTML code from an email in Apple Mail into clean HTML code.
Steps to perform
- View the emails' raw source by selecting View --> Message --> Raw Source
- Copy the HTML part of the raw source
- Delete all occurences of "=09" (rarely occuring)
- Delete all occurences of "3D" - case-sensitive
- Delete all occurences of the regexp "=\n\s+"
- Delete all occurences of the regexp "=\n+"
- Replace all occurences of "=C2=A0" with a blank space " " (rarely occuring)
Then reformat your code and manually correct any remaining code issues if there are any. In most cases, performing the search & replace actions outlined above will be sufficient.
Done, you should have clean HTML code of your email now.