Re: Javascript and those naughty characters...
Hey Wige,
I don't know if I have much of a choice other than to use javascript. The page is generated by our shopping cart perl/cgi and where I can't get to the source code or use PHP, this looks to be about my only choice unless someone else has a suggestion.
The text file holds a product description. However, (correct me if I'm wrong) I don't think that javascript can process the text file if there are funky characters in it (html, ", etc....). This is the problem, some of our product description are just one or two lines with not html or weird characters. These a processed fine with the script. It's the descriptions that have weird characters that are not showing up in the results.
It's part of a search results page but I don't want there to be tons of text in the results so I wan't to truncate the product description to only the first 50 characters.
DaK
|