File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function ($errorNumber, $errorString) {
76
76
} catch (\Exception $ e ) {
77
77
restore_error_handler ();
78
78
$ this ->getLogger ()->critical ($ e );
79
- return '' ;
79
+ return $ this -> escapeHtml ( $ data ) ;
80
80
}
81
81
restore_error_handler ();
82
82
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ public function escapeHtmlDataProvider()
225
225
],
226
226
'html and body tags ' => [
227
227
'data ' => '<html><body><span>String</span></body></html> ' ,
228
- 'expected ' => '' ,
228
+ 'expected ' => '<html><body><span>String</span></body></html> ' ,
229
229
'allowedTags ' => ['span ' ],
230
230
],
231
231
];
@@ -244,7 +244,7 @@ public function escapeHtmlInvalidDataProvider()
244
244
],
245
245
'text with invalid html ' => [
246
246
'data ' => '<spa>n id="id1">Some string</span> ' ,
247
- 'expected ' => '' ,
247
+ 'expected ' => '<spa>n id="id1">Some string</span> ' ,
248
248
'allowedTags ' => ['span ' ],
249
249
],
250
250
];
You can’t perform that action at this time.
0 commit comments