Skip to content

Commit cb30704

Browse files
author
Igor Melnikov
committed
MAGETWO-57271: Modify escapeHtml function to filter not allowed attributes and tags
Modifying function to filter not allowed tags and attributes
1 parent 624ee86 commit cb30704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Escaper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class Escaper
3636
private $escapeAsUrlAttributes = ['href'];
3737

3838
/**
39-
* Escape string for HTML context, allowedTags will not be escaped
39+
* Escape string for HTML context. allowedTags will not be escaped, except the following: script, img, embed,
40+
* iframe, video, source, object, audio
4041
*
4142
* @param string|array $data
4243
* @param array|null $allowedTags

0 commit comments

Comments
 (0)