Hello everyone,
I am new here and relatively new to PHP. I have run into a wall with a parse I have been working on. I get search results with <b> and </b> in it. In another parser i included a strip_tags() and it solved the problem. But with this one I seem to just not be able to find the right spot to put that code. here is a peice of the parse:
// PREPARE VALUES FOR THE QUERY:
$SearchTerm = str_replace(' ', '+', $SearchTerm);
$ip = $_SERVER['REMOTE_ADDR'];
// BUILD THE QUERY:
$strQuery = "http://feed.feedpatrol.com/?xtype=1&maxcount=3&xformat=xml";
$strQuery .= "&search=$SearchTerm";
$strQuery .= "&affid=$ID";
$strQuery .= "&ip=$ip";
// GET THE RAW XML FEED DATA AND CLEANUP (IF NEEDED):
$xmlData = GetURL($strQuery);
$xmlData = urldecode($xmlData);
// XML TAGS USED BY THIS XML FEED PROVIDER:
$xmlListingName = 'LISTING';
$xmlFields['Title'] = 'TITLE';
$xmlFields['Description'] = 'DESCRIPTION';
$xmlFields['Url'] = 'SITEHOST';
$xmlFields['Uri'] = 'LINK';
// PARSE THE XML:
ParseXML($xmlData);
// RETURN THE RESULT:
return $xmlItems;
the results look alot like this:
- <b>Widgets</b> - $8.59
Description: Make <b>Widgets</b> your one-stop-shop for all your media needs. Find the latest book, movie, music and gaming titles at deep discounts. Flat-rate shipping. Overstock - your online outlet.
www.widgets.php
I have tried mutiples placings for the stip_tags() to no avail.
Again I am new to this and look forward to your advise.
Thank you,
Daniel