Woocommerce: show price (wc_price) without formatting
The WooCommerce function wc_price() returns the formatted price specified in a variable with some markup around it. Sometimes it is useful to have the option to return wc_price() without this html markup. If you want to display wc_price() without formatted HTML, you can use wp_strip_all_tags, as shown below:
/*
* Returns wc_price without html tags,
* $variantionPrice must contain a number/price
*/
$wc_price_without_html = wp_strip_all_tags( wc_price( $variationPrice ))