Page 1 of 1

Escape text in templates

Posted: Wed Jul 20, 2011 9:25 am
by sweeperq
Is there a way to escape text in the scriptlets? Example: $Product.Name includes quotation marks for some of our products. When we use the Product Name as an attribute, it cuts off the name and leads to invalid markup. Ideally we would like to replace the quotation marks with "

Re: Escape text in templates

Posted: Mon Jul 25, 2011 7:19 am
by AbleMods
Not sure that's possible. Have you tried enclosing the nVelocity variables in squiggly brackets like this? {$product.Name}