Fixed tests.
This commit is contained in:
parent
3f1e0ac4a7
commit
e2ea1eec7c
|
|
@ -50,7 +50,7 @@ abstract class AbstractElement extends HTMLAbstractElement
|
||||||
*/
|
*/
|
||||||
private $paragraphStyle;
|
private $paragraphStyle;
|
||||||
|
|
||||||
public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP)
|
public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP = false)
|
||||||
{
|
{
|
||||||
parent::__construct($parentWriter, $element, $withoutP);
|
parent::__construct($parentWriter, $element, $withoutP);
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ abstract class AbstractElement extends HTMLAbstractElement
|
||||||
if (Settings::isOutputEscapingEnabled()) {
|
if (Settings::isOutputEscapingEnabled()) {
|
||||||
return $this->escaper->escape($text);
|
return $this->escaper->escape($text);
|
||||||
} else {
|
} else {
|
||||||
return CommonText::toUnicode($text);
|
return CommonText::toUnicode($text); // todo: replace with `return $text;` later.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue