diff --git a/src/PhpWord/Writer/RTF/Element/AbstractElement.php b/src/PhpWord/Writer/RTF/Element/AbstractElement.php index b185cd92..ee08f9c7 100644 --- a/src/PhpWord/Writer/RTF/Element/AbstractElement.php +++ b/src/PhpWord/Writer/RTF/Element/AbstractElement.php @@ -50,7 +50,7 @@ abstract class AbstractElement extends HTMLAbstractElement */ private $paragraphStyle; - public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP) + public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP = false) { parent::__construct($parentWriter, $element, $withoutP); @@ -126,7 +126,7 @@ abstract class AbstractElement extends HTMLAbstractElement if (Settings::isOutputEscapingEnabled()) { return $this->escaper->escape($text); } else { - return CommonText::toUnicode($text); + return CommonText::toUnicode($text); // todo: replace with `return $text;` later. } }