/**
  * Functions for getting parts of a price, in html, used by get_price_html.
  *
  * @deprecated 2.7.0 Use wc_format_sale_price instead.
  * @param  string $from String or float to wrap with 'from' text
  * @param  mixed $to String or float to wrap with 'to' text
  * @return string
  */
 public function get_price_html_from_to($from, $to)
 {
     wc_deprecated_function('WC_Product::get_price_html_from_to', '2.7', 'wc_format_sale_price');
     return apply_filters('woocommerce_get_price_html_from_to', wc_format_sale_price($from, $to), $from, $to, $this);
 }
 /**
  * Returns the price in html format.
  * @return string
  */
 public function get_price_html($deprecated = '')
 {
     if ('' === $this->get_price()) {
         return apply_filters('woocommerce_empty_price_html', '', $this);
     }
     if ($this->is_on_sale()) {
         $price = wc_format_sale_price(wc_get_price_to_display($this, array('price' => $this->get_regular_price())), wc_get_price_to_display($this)) . wc_get_price_suffix($this);
     } else {
         $price = wc_price(wc_get_price_to_display($this)) . wc_get_price_suffix($this);
     }
     return apply_filters('woocommerce_get_price_html', $price, $this);
 }