I want to change the add to cart button text, when a product is successfully added to the cart. I want to add soms custom html (a icon) to the button.
I tried to change the following, but that does not work. It does not read the HTMl but add it as plain text.
How can I solve this?
File: /app/design/frontend/Theme/theme/Magento_Catalog/web/js/catalog-add-to-cart.js
setTimeout(function () {
var addToCartButtonTextDefault = self.options.addToCartButtonTextDefault || $t('Add to Cart');
addToCartButton.removeClass(self.options.addToCartButtonDisabledClass);
addToCartButton.find('span').text(addToCartButtonTextDefault);
addToCartButton.attr('title', addToCartButtonTextDefault);
}, 1000);