Escape text in templates

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Escape text in templates

Post by sweeperq » Wed Jul 20, 2011 9:25 am

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 "

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Escape text in templates

Post by AbleMods » Mon Jul 25, 2011 7:19 am

Not sure that's possible. Have you tried enclosing the nVelocity variables in squiggly brackets like this? {$product.Name}
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply