@@ -131,7 +131,7 @@ public function getOrdersTrackingCode()
131131 'quantity': %s
132132 }); " ,
133133 $ this ->escapeJs ($ item ->getSku ()),
134- $ this ->escapeJs ($ item ->getName ()),
134+ $ this ->escapeJsQuote ($ item ->getName ()),
135135 $ item ->getPrice (),
136136 $ item ->getQtyOrdered ()
137137 );
@@ -146,7 +146,7 @@ public function getOrdersTrackingCode()
146146 'shipping': '%s'
147147 }); " ,
148148 $ order ->getIncrementId (),
149- $ this ->escapeJs ($ this ->_storeManager ->getStore ()->getFrontendName ()),
149+ $ this ->escapeJsQuote ($ this ->_storeManager ->getStore ()->getFrontendName ()),
150150 $ order ->getGrandTotal (),
151151 $ order ->getTaxAmount (),
152152 $ order ->getShippingAmount ()
@@ -237,14 +237,14 @@ public function getOrdersTrackingData()
237237 foreach ($ order ->getAllVisibleItems () as $ item ) {
238238 $ result ['products ' ][] = [
239239 'id ' => $ this ->escapeJs ($ item ->getSku ()),
240- 'name ' => $ this ->escapeJs ($ item ->getName ()),
240+ 'name ' => $ this ->escapeJsQuote ($ item ->getName ()),
241241 'price ' => $ item ->getPrice (),
242242 'quantity ' => $ item ->getQtyOrdered (),
243243 ];
244244 }
245245 $ result ['orders ' ][] = [
246246 'id ' => $ order ->getIncrementId (),
247- 'affiliation ' => $ this ->escapeJs ($ this ->_storeManager ->getStore ()->getFrontendName ()),
247+ 'affiliation ' => $ this ->escapeJsQuote ($ this ->_storeManager ->getStore ()->getFrontendName ()),
248248 'revenue ' => $ order ->getGrandTotal (),
249249 'tax ' => $ order ->getTaxAmount (),
250250 'shipping ' => $ order ->getShippingAmount (),
0 commit comments