You are here

function messaging_html_to_text in Messaging 5

HTML to text conversion

Uses html_to_text facility if available or simple filtering otherwise

2 calls to messaging_html_to_text()
messaging_filter in ./messaging.module
Implementation of hook_filter(). Contains a basic set of essential filters.
messaging_phpmailer_drupal_mail in messaging_phpmailer/messaging_phpmailer.module
Send a message via PHPMailer. This function mimics drupal_mail. We do not use drupal_mail instead because we want to be able to send mail with both PHPMailer and MIMEMail.

File

./messaging.module, line 900

Code

function messaging_html_to_text($text) {
  if (function_exists('drupal_html_to_text')) {
    return drupal_html_to_text($text);
  }
  else {
    return messaging_check_plain($text);
  }
}