chartfieldconsultants
29-06-07, 01:47
Hoping someone can give me a 'for dummies' answer ro this one:
I'm trying to use the product description from the feed in my product page metadata, as:
<meta name="description" content="{$sProductDesc}" />
Which is all fine and dandy, works lovely, until I come across a product that uses double quote marks in its description. Such as this output:
<meta name="description" content="1/4" Router. 900w Motor 11500 - 28500Rpm. 1/4" Collect . Adjustable Plunge Depth. Electronic Variable Speed Control. Parallel Guide. Circle Guide Dust Extractor Facility. 3 Year Guarantee. Product Ref: 762170" />
As you can see, the 'content' attribute was closed alsmost at once by the quotes used by the merchant to represent inches.
Is there anything I can do to escape the double quotes or force them to be rendered as & quot ; under those circumstances?
Thanks in advance,
Andy
I'm trying to use the product description from the feed in my product page metadata, as:
<meta name="description" content="{$sProductDesc}" />
Which is all fine and dandy, works lovely, until I come across a product that uses double quote marks in its description. Such as this output:
<meta name="description" content="1/4" Router. 900w Motor 11500 - 28500Rpm. 1/4" Collect . Adjustable Plunge Depth. Electronic Variable Speed Control. Parallel Guide. Circle Guide Dust Extractor Facility. 3 Year Guarantee. Product Ref: 762170" />
As you can see, the 'content' attribute was closed alsmost at once by the quotes used by the merchant to represent inches.
Is there anything I can do to escape the double quotes or force them to be rendered as & quot ; under those circumstances?
Thanks in advance,
Andy