Hi i'm using simple_html_dom
php library to get contents from other website.
I have below html structure,
<h1 class="nik_product_title" style="color: #000;">
DSLR D7100
<span class="new_big_parent">
<span class="new_big_child">
<span class="new_big_child1">new</span>
</span>
</span>
</h1>
Using this
@$html->find ( 'div[class=nik_block_product_main_info_component_inner] h1',0)->plaintext;
But i'm getting output as DSLR+D7100new
How to get only first plain text i.e, need to fetch only DSLR D7100
You can actually get at that one with:
We can use a core function to get the result what you want.