protected function Html2Text::convertPre in Swift Mailer 7
1 call to Html2Text::convertPre()
- Html2Text::converter in includes/classes/Html2Text.inc
File
- includes/classes/Html2Text.inc, line 425
Class
- Html2Text
Code
protected function convertPre(&$text) {
while (preg_match('/<pre[^>]*>(.*)<\\/pre>/ismU', $text, $matches)) {
$this->preContent = $matches[1];
$this->preContent = preg_replace_callback($this->callbackSearch, array(
$this,
'pregCallback',
), $this->preContent);
$this->preContent = sprintf('<div><br>%s<br></div>', preg_replace($this->preSearch, $this->preReplace, $this->preContent));
$text = preg_replace_callback('/<pre[^>]*>.*<\\/pre>/ismU', array(
$this,
'pregPreCallback',
), $text, 1);
$this->preContent = '';
}
}