In particular the metatag description.
I added this code:
CODE
<meta name="description" content="<?php echo $meta_description_tag; ?>">
and
$meta_description = ereg_replace('<[^>]*>', '', $product_info['products_description']);
if (strlen($meta_description) > 200){
$meta_description_tag = substr($meta_description, 0, 200) . '...';
}else {
$meta_description_tag = $meta_description;
}
and
$meta_description = ereg_replace('<[^>]*>', '', $product_info['products_description']);
if (strlen($meta_description) > 200){
$meta_description_tag = substr($meta_description, 0, 200) . '...';
}else {
$meta_description_tag = $meta_description;
}
It works ok, except for some pages: <URL removed > if you look closely at the description you will see because of the " in the product description closes the metatag description.
how can I avoid this?
Edited by chrishirst, 16 June 2006 - 01:21 AM.









