protected static function 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);
}

© 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/function/MailFormatHelper::htmlToTextClean/8.1.x