system/libraries/Email.php
/**
		* Build alternative plain text message
		*
		* Provides the raw message for use in plain-text headers of
		* HTML-formatted emails.
		* If the user hasn't specified his own alternative message
		* it creates one by stripping the HTML
		*
		* @return	string
		*/
Build alternative plain text message
Provides the raw message for use in plain-text headers of
HTML-formatted emails.
If the user hasn't specified his own alternative message
it creates one by stripping the HTML

@return       string
Build alternative plain text message Provides the raw message for use in plain - text headers of HTML - formatted emails . If the user hasn ' t specified his own alternative message it creates one by stripping the HTML @return string
protected function _get_alt_message()
		{
			if ( ! empty($this->alt_message))
			{
				return ($this->wordwrap)
				? $this->word_wrap($this->alt_message, 76)
				: $this->alt_message;
			}
			$body = preg_match('/\<body.*?\>(.*)\<\/body\>/si', $this->_body, $match) ? $match[1] : $this->_body;
			$body = str_replace("\t", '', preg_replace('#<!--(.*)--\>#', '', trim(strip_tags($body))));
			for ($i = 20; $i >= 3; $i--)
			{
				$body = str_replace(str_repeat("\n", $i), "\n\n", $body);
			}
			$body = preg_replace('| +|', ' ', $body);
			return ($this->wordwrap)
			? $this->word_wrap($body, 76)
			: $body;
		}
protected function _get_alt_message ( ) { if ( ! empty ( $ this -> alt_message ) ) { return ( $ this -> wordwrap ) ? $ this -> word_wrap ( $ this -> alt_message , 76 ) : $ this -> alt_message ; } $ body = preg_match ( '/\<body.*?\>(.*)\<\/body\>/si' , $ this -> _body , $ match ) ? $ match [ 1 ] : $ this -> _body ; $ body = str_replace ( " \t " , '' , preg_replace ( '#<!--(.*)--\>#' , '' , trim ( strip_tags ( $ body ) ) ) ) ; for ( $ i = 20 ; $ i >= 3 ; $ i -- ) { $ body = str_replace ( str_repeat ( " \n " , $ i ) , " \n \n " , $ body ) ; } $ body = preg_replace ( '| +|' , ' ' , $ body ) ; return ( $ this -> wordwrap ) ? $ this -> word_wrap ( $ body , 76 ) : $ body ; }
Build alternative plain text message
 Provides the raw message for use in plain-text headers of
 HTML-formatted emails.
Build alternative plain text message Provides the raw message for use in plain - text headers of HTML - formatted emails .
// Reduce multiple spaces