Check out example codes for "crawler get text, not get html". It will help you in understanding the concepts better.

Code Example 1

$node->filter('span[class="final-price"]')->each(function ($n) {
  $html = $n->html();

  $html = explode("<span", $html);  
    // <span> 
    //		11 USD
    // 		<span> -37% </span>
    // </span>
    pr (trim($html[0]));	// just get 11 USD only
  });

Learn ReactJs, React Native from akashmittal.com