hi all,
I'm using this script to populate certain amount of words from product description into section if you understand what i mean, however it populates all the characters inc. !!<>!!
so the question is: is there any possibility to modify the script so it only populates letters not symbols?
script i'm using:
thank you very much
I'm using this script to populate certain amount of words from product description into section if you understand what i mean, however it populates all the characters inc. !!<>!!

so the question is: is there any possibility to modify the script so it only populates letters not symbols?
script i'm using:
Code:
$sShort = "";
$nCount = 0;
$sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
foreach(explode(" ", $sOriginal) as $sWord)
{
if ($nCount > 20)
{
$sShort .= "...";
break;
}
$sShort .= $sWord . " ";
$nCount++;
}
echo $sShort;
Comment