You are here

public function Html2Text::getText in Swift Mailer 7

Returns the text, converted from HTML.

Return value

string

2 calls to Html2Text::getText()
Html2Text::get_text in includes/classes/Html2Text.inc
Html2Text::print_text in includes/classes/Html2Text.inc

File

includes/classes/Html2Text.inc, line 276

Class

Html2Text

Code

public function getText() {
  if (!$this->converted) {
    $this
      ->convert();
  }
  return $this->text;
}