From d7d3a69768671bc44d3e184002dea3adc6d05ad0 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 5 Nov 2014 11:34:56 +0000 Subject: [PATCH] Issue #2359069 by er.pushpinderrana, keso | JeroenT: Remove drupal_html_to_text(). --- core/includes/mail.inc | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/core/includes/mail.inc b/core/includes/mail.inc index c22d10acb571..3ad7be2c8e6e 100644 --- a/core/includes/mail.inc +++ b/core/includes/mail.inc @@ -170,31 +170,3 @@ function drupal_mail_system($module, $key) { function drupal_wrap_mail($text, $indent = '') { return MailFormatHelper::wrapMail($text, $indent); } - -/** - * Transforms an HTML string into plain text, preserving its structure. - * - * The output will be suitable for use as 'format=flowed; delsp=yes' text - * (RFC 3676) and can be passed directly to drupal_mail() for sending. - * - * We deliberately use LF rather than CRLF, see drupal_mail(). - * - * This function provides suitable alternatives for the following tags: - *

    1. - *


      - * - * @param $string - * The string to be transformed. - * @param $allowed_tags (optional) - * If supplied, a list of tags that will be transformed. If omitted, all - * all supported tags are transformed. - * - * @return - * The transformed string. - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal\Core\Utility\Mail::htmlToText(). - */ -function drupal_html_to_text($string, $allowed_tags = NULL) { - return MailFormatHelper::htmlToText($string, $allowed_tags); -}