MailFormatHelper::htmlToTextClean

protected static MailFormatHelper::htmlToTextClean($indent)

Replaces non-quotation markers from a piece of indentation with spaces.

Callback for array_map() within \Drupal\Core\Mail\MailFormatHelper::htmlToText().

File

core/lib/Drupal/Core/Mail/MailFormatHelper.php, line 361

Class

MailFormatHelper
Defines a class containing utility methods for formatting mail messages.

Namespace

Drupal\Core\Mail

Code

protected static function htmlToTextClean($indent) {
  return preg_replace('/[^>]/', ' ', $indent);
}
doc_Drupal
2016-10-29 09:25:11
Comments
Leave a Comment

Please login to continue.