cancel
Showing results for 
Search instead for 
Did you mean: 

Minicart - Html text reflecting raw , required formatted text in magento 2

Minicart - Html text reflecting raw , required formatted text in magento 2

In mini cart i am trying to put a custom/formatted text but it reflecting raw html over there, required for magento 2.

Using Magento 2.2.4.

I expect html formatted text but the actual output raw text on minicart.

Screenshots

 

detailspage.pngminicart.png

1 REPLY 1

Re: Minicart - Html text reflecting raw , required formatted text in magento 2

Hi @rishabh_shukla1 

Mini cart is rendered using knockout js. You need to bind your html accordingly. 

For more info: 
https://webkul.com/blog/how-to-show-additional-data-on-mini-cart-in-magento-2/

I hope it will help you!