Hi Dave,
I think i have fixed the problem now for HTML Unicode characters i added this below to admin.php to convert Unicode then used strip_tags already in price tapestry code and added pre match to remove any links inside the product descriptions i posted it here to ask if you can look at it and to see if you think there will be any problems with it?
It has removed 98% of html from data mind you only tested on one xml file! but it would not remove these tags ' #x0D; not sure why my lack of php knowledge no doubt?
$record[$admin_importFeed["field_description"]] = htmlspecialchars_decode($record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = preg_replace('/(<a[^>]*>)(.*?)(<\/a>)/is','', $record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = strip_tags($record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = preg_replace('/\s\s+/', ' ', $record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = str_replace("#x0D;","",$record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = str_replace("'","'",$record[$admin_importFeed["field_description"]]);
Kind Regards
Darren
Hi Darren,
It's possible that the & part of the entity is itself encoded into & so your str_replace search strings would need to be:
str_replace("&#x0D;","",$record[$admin_importFeed["field_description"]]);
$record[$admin_importFeed["field_description"]] = str_replace("&apos;","'",$record[$admin_importFeed["field_description"]]);
Cheers,
David.