File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
app/code/Magento/Catalog/view/adminhtml/web/js Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,19 @@ define([
10
10
] , function ( $ ) {
11
11
'use strict' ;
12
12
13
- var decodeEntities ;
13
+ var decodeEntities ,
14
+ doc ,
15
+ element ;
16
+
14
17
decodeEntities = ( function ( ) {
15
18
//create a new html document (doesn't execute script tags in child elements)
16
- var doc = document . implementation . createHTMLDocument ( '' ) ,
17
- element = doc . createElement ( 'div' ) ;
19
+ doc = document . implementation . createHTMLDocument ( '' ) ;
20
+ element = doc . createElement ( 'div' ) ;
18
21
19
22
/**
20
- * @param string
21
- * @return string
23
+ * Get Text Content
24
+ * @param {string } str
25
+ * @return {* }
22
26
*/
23
27
function getText ( str ) {
24
28
element . innerHTML = str ;
@@ -29,8 +33,9 @@ define([
29
33
}
30
34
31
35
/**
32
- * @param string
33
- * @return string
36
+ * Get HTML decoded Entities
37
+ * @param {string } str
38
+ * @return {* }
34
39
*/
35
40
function decodeHTMLEntities ( str ) {
36
41
if ( str && typeof str === 'string' ) {
You can’t perform that action at this time.
0 commit comments