We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405ee6e commit 4e52b2dCopy full SHA for 4e52b2d
app/code/Magento/Variable/Model/Variable.php
@@ -115,7 +115,7 @@ public function getValue($type = null)
115
$value = $this->getData('plain_value');
116
//escape html if type is html, but html value is not defined
117
if ($type == self::TYPE_HTML) {
118
- $value = nl2br($this->_escaper->escapeHtml($value));
+ $value = nl2br((string)$this->_escaper->escapeHtml($value));
119
}
120
return $value;
121
0 commit comments