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.
2 parents f51a83f + 4e52b2d commit beee1a0Copy full SHA for beee1a0
app/code/Magento/Variable/Model/Variable.php
@@ -129,7 +129,7 @@ public function getValue($type = null)
129
$value = $this->getData('plain_value');
130
//escape html if type is html, but html value is not defined
131
if ($type == self::TYPE_HTML) {
132
- $value = nl2br($this->_escaper->escapeHtml($value));
+ $value = nl2br((string)$this->_escaper->escapeHtml($value));
133
}
134
return $value;
135
0 commit comments