You are here

protected static function MailFormatHelper::htmlToTextClean in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Mail/MailFormatHelper.php \Drupal\Core\Mail\MailFormatHelper::htmlToTextClean()

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

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

1 call to MailFormatHelper::htmlToTextClean()
MailFormatHelper::wrapMail in core/lib/Drupal/Core/Mail/MailFormatHelper.php
Performs format=flowed soft wrapping for mail (RFC 3676).

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);
}