- Prepare for HTML Email
- Editor menu command
-
5 Recent Installs123 Total Installs
Readme
Editor menu command to perform quote-straightening, cleanup of whitespace, conversion of common non-ASCII characters, and insertion of HTML <p>
tags for use in HTML emails.
Provided "as is." Use at your own risk.
By Morgan Adams, Adams Immersive
Notes
Straightens all quotes and backticks.
& and < > characters (illegal in HTML content) are entity-encoded.
Ellipsis characters become "...".
Double hyphens (--) and m-dashes become -
.
N-dashes become hyphens.
Tabs and non-breaking space characters become normal spaces.
Repeated consecutive spaces become single spaces.
Extra spaces are removed from the start and end of each paragraph.
Line breaks are normalized as "\n" (newline).
Paragraphs are wrapped in <p>
tags and separated by blank lines.
All other blank lines are removed and leading/trailing whitespace is stripped.
Does not attempt to process markdown or styles.
Changelog
Version 1.0
Initial release