if ($this->css_embed) {
$htmlbody = $this->htmlbodyCssEmbed($htmlbody);
}
- print_R($this;exit;)
+
if ($this->css_inline && strlen($this->css_inline)) {
$htmlbody = $this->htmlbodyInlineCss($htmlbody);
}
$s = $dom->createElement('style');
$e = $dom->createTextNode($this->css_inline);
$s->appendChild($e);
- $body->appendChild($s);
+ $body->item(0)->appendChild($s);
return $dom->saveHTML();
}