Hi there.
I have found the problem. Therefore I have found the solution. The problem lies in your theme files: woodmart > woocommerce > cart > cart.php.
I have replaced the following lines:
83. echo wp_kses_post( apply_filters( ‘woocommerce_cart_item_name’, esc_html( $_product->get_name() ), $cart_item, $cart_item_key ) . ‘ ‘ );
87. echo wp_kses_post( apply_filters( ‘woocommerce_cart_item_name’, sprintf( ‘%s‘, esc_url( $product_permalink ), esc_html( $_product->get_name() ) ), $cart_item, $cart_item_key ) );
For these others:
83. echo wp_kses_post( apply_filters( ‘woocommerce_cart_item_name’, $_product->get_name(), $cart_item, $cart_item_key ) . ‘ ‘ );
87. echo wp_kses_post( apply_filters( ‘woocommerce_cart_item_name’, sprintf( ‘%s‘, esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );
All this I have done in child theme.
This solves the problem of embedding html tags in the product title on the cart page.
Regards
Attachments:
You must be
logged in to view attached files.