Defines a class containing utility methods for formatting mail messages.
Name | Modifiers | Type | Description |
---|---|---|---|
MailFormatHelper::$regexp | protected static | property | Quoted regex expression based on base path. |
MailFormatHelper::$supportedTags | protected static | property | Array of tags supported. |
MailFormatHelper::$urls | protected static | property | Internal array of urls replaced with tokens. |
MailFormatHelper::htmlToMailUrls | protected static | function | Keeps track of URLs and replaces them with placeholder tokens. |
MailFormatHelper::htmlToText | public static | function | Transforms an HTML string into plain text, preserving its structure. |
MailFormatHelper::htmlToTextClean | protected static | function | Replaces non-quotation markers from a piece of indentation with spaces. |
MailFormatHelper::htmlToTextPad | protected static | function | Pads the last line with the given character. |
MailFormatHelper::wrapMail | public static | function | Performs format=flowed soft wrapping for mail (RFC 3676). |
MailFormatHelper::wrapMailLine | protected static | function | Wraps words on a single line. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Mail!MailFormatHelper.php/class/MailFormatHelper/8.1.x