Posted on 23/09/2013 09:13:11
Hi Nicolai and thank you for your response.
I had not noticed these template extensions. They'll be handy in the future.
Despite the site using HTML5, the tag <!--@Ecom:VariantCombination.LinkGroup.Clean--> outputs & instead of &
I tried using the .UrlEncoded() extension and that took care of the validation but the link doesn't work anymore. :)
Working, non-validating url:
Default.aspx?ID=107&GroupID=GROUP7&ProductID=PROD142&VariantID=VO12
UrlEncoded (returns Page not found):
Default.aspx%3fID%3d107%26GroupID%3dGROUP7%26ProductID%3dPROD142%26VariantID%3dVO12
Also, unfortunately .UrlEncoded() result is pretty unusable as a title or alt tag. Looks like jibberish :)
But what about the .HtmlEncoded() extension? It doesn't seem to do anything in my example of the Product.Name. I would have guessed that it would encode this: Schwinn Tiger 12" Kid’s Bike to Schwinn Tiger 12" Kid’s Bike.
As per this online html encoder
Thanks again for taking the time to help!
Regards, Victor.