This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Description
Using toRichTextObject() to encode a HTML string:
<strong>bold</strong>, <em>italic</em>, <strong><em>bold+italic</em></strong>
becomes:
bold , italic , _bold+italic_
I fixed this for me:
@PHPExcel/Classes/PHPExcel/Helper/HTML.php
protected function parseElementNode(DOMElement $element) {
$callbackTag = strtolower($element->nodeName);
$this->stack[] = $callbackTag;
$this->handleCallback($element, $callbackTag, $this->startTagCallbacks);
$this->parseElements($element);
$this->stringData .= ' ';
array_pop($this->stack);
$this->handleCallback($element, $callbackTag, $this->endTagCallbacks);
}
Should be:
$this->stringData .= ''; // whitespace removed