You are here

function _mimemail_html_to_text_clean in Mime Mail 5

Helper function for mimemail_wrap_mail() and mimemail_html_to_text().

Replace all non-quotation markers from a given piece of indentation with spaces.

1 call to _mimemail_html_to_text_clean()
mimemail_wrap_mail in ./html_to_text.inc
Perform format=flowed soft wrapping for mail (RFC 3676).
1 string reference to '_mimemail_html_to_text_clean'
mimemail_html_to_text in ./html_to_text.inc
Transform an HTML string into plain text, preserving the structure of the markup. Useful for preparing the body of a node to be sent by e-mail.

File

./html_to_text.inc, line 273

Code

function _mimemail_html_to_text_clean($indent) {
  return preg_replace('/[^>]/', ' ', $indent);
}