function MailFormatHelper::htmlToTextClean

Same name in other branches
  1. 9 core/lib/Drupal/Core/Mail/MailFormatHelper.php \Drupal\Core\Mail\MailFormatHelper::htmlToTextClean()
  2. 10 core/lib/Drupal/Core/Mail/MailFormatHelper.php \Drupal\Core\Mail\MailFormatHelper::htmlToTextClean()
  3. 11.x 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.