Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OmairXcluesiv committed Feb 3, 2017
1 parent 544f7fc commit 179e6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.php
Expand Up @@ -60,7 +60,10 @@ function html2text($Document) {
// echo "Product Price" . $product_price . "<br>";
//echo preg_replace($Rules, $Replace, $r[$i]);
echo "Product Title: " . strip_tags($r[$i]) . "\n";
echo "Product Price:" . strip_tags($m[$i]) . "\n\n\n\n\n";
str_replace(' ', '', $old_str);
$p_text = strip_tags($m[$i])
$no_ws = str_replace(' ','', $p_text );
echo "Product Price:" . $no_ws . "\n\n\n\n\n";



Expand Down

0 comments on commit 179e6ee

Please sign in to comment.