-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue product name render wrong with special characters
update update update update up up up update up Update default.html fix getProductNameUnsanitizedHtml is not defined up
- Loading branch information
Showing
3 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app/code/Magento/Checkout/view/frontend/web/js/view/cart-item-renderer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
define([ | ||
'uiComponent' | ||
], function (Component) { | ||
'use strict'; | ||
|
||
return Component.extend({ | ||
/** | ||
* Prepare the product name value to be rendered as HTML | ||
* | ||
* @param {String} productName | ||
* @return {String} | ||
*/ | ||
getProductNameUnsanitizedHtml: function (productName) { | ||
// product name has already escaped on backend | ||
return productName; | ||
}, | ||
|
||
/** | ||
* Prepare the given option value to be rendered as HTML | ||
* | ||
* @param {String} optionValue | ||
* @return {String} | ||
*/ | ||
getOptionValueUnsanitizedHtml: function (optionValue) { | ||
// option value has already escaped on backend | ||
return optionValue; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters