Merge pull request #30305 from shyam-mishra/fix/30198
fixed by putting strip all tag
This commit is contained in:
commit
1947c80c21
|
@ -1673,7 +1673,7 @@ class WC_AJAX {
|
|||
$products = array();
|
||||
|
||||
foreach ( $product_objects as $product_object ) {
|
||||
$products[ $product_object->get_id() ] = rawurldecode( $product_object->get_formatted_name() );
|
||||
$products[ $product_object->get_id() ] = rawurldecode( wp_strip_all_tags( $product_object->get_formatted_name() ) );
|
||||
}
|
||||
|
||||
wp_send_json( $products );
|
||||
|
|
Loading…
Reference in New Issue