protected function Html2Text::convert in Swift Mailer 7
1 call to Html2Text::convert()
- Html2Text::getText in includes/
classes/ Html2Text.inc - Returns the text, converted from HTML.
File
- includes/
classes/ Html2Text.inc, line 327
Class
Code
protected function convert() {
$this->linkList = array();
$text = trim(stripslashes($this->html));
$this
->converter($text);
if ($this->linkList) {
$text .= "\n\nLinks:\n------\n";
foreach ($this->linkList as $i => $url) {
$text .= '[' . ($i + 1) . '] ' . $url . "\n";
}
}
$this->text = $text;
$this->converted = true;
}