function _mailsystem_html_to_text_clean in Mail System 7.2
Same name and namespace in other branches
- 8.2 html_to_text.inc \_mailsystem_html_to_text_clean()
- 6.2 html_to_text.inc \_mailsystem_html_to_text_clean()
- 7.3 html_to_text.inc \_mailsystem_html_to_text_clean()
Helper function for drupal_wrap_mail() and drupal_html_to_text().
Replace all non-quotation markers from a given piece of indentation with non-breaking space characters.
1 call to _mailsystem_html_to_text_clean()
- mailsystem_wrap_mail in ./
html_to_text.inc - Perform format=flowed soft wrapping for mail (RFC 3676).
File
- ./
html_to_text.inc, line 740 - Copy of drupal_html_to_text improvements from issue #299138.
Code
function _mailsystem_html_to_text_clean($indent) {
// chr(160) is the non-breaking space character.
return preg_replace('/[^>]/', chr(160), $indent);
}