Quote:
Originally Posted by nevets1219
The amp is particularly confusing because I assume it to be something from Smarty but searching the Smarty documentation for amp yields no results.
|
Its a custom Smarty modifier that X-Cart introduced in 4.1. You can find it in include/templater/plugins/modifier.amp.php. All it does is convert any '&' not followed by 'amp;' to '&'. Pretty silly in my book. They should be using escape. But I guess they want to let people use '&' in their category titles but not ' ' or ''' etc. They really should choose - either you can use HTML in the titles or you can't. If you can't everything should go through escape. If you can leave it alone and its up to whoever is entering it to get it right.