I'm having some issues with encoding content for the ZOOMTITLE meta tag from ASP.NET (3.5).
If I let .NET use the default method (HtmlAttributeEncode), it only encodes '"' (double quote), '&', and '<'. Zoom displays an error about invalid html near ZOOMTITLE if there is a '>' in the content. (Note: Opera 10 displays this as if it thinks it's invalid html when viewing the source of the web page, too. Firefox 3.5 does not.)
If I use Microsoft.Security.Application.AntiXss .HtmlAttributeEncode (version 3.1), it encodes '>', but it also encodes spaces as "& #32;" (remove the space). On the search results, the encoded spaces are stripped out completely from the page titles.
For now, I have to use a custom function to encode the '>' characters, but not spaces. (If only one of these scenarios is changed in the Zoom Search Engine, I would rather it be the handling of the encoded spaces.)
(This is for Zoom Search Engine version 6.0 build 1017.)
If I let .NET use the default method (HtmlAttributeEncode), it only encodes '"' (double quote), '&', and '<'. Zoom displays an error about invalid html near ZOOMTITLE if there is a '>' in the content. (Note: Opera 10 displays this as if it thinks it's invalid html when viewing the source of the web page, too. Firefox 3.5 does not.)
If I use Microsoft.Security.Application.AntiXss .HtmlAttributeEncode (version 3.1), it encodes '>', but it also encodes spaces as "& #32;" (remove the space). On the search results, the encoded spaces are stripped out completely from the page titles.
For now, I have to use a custom function to encode the '>' characters, but not spaces. (If only one of these scenarios is changed in the Zoom Search Engine, I would rather it be the handling of the encoded spaces.)
(This is for Zoom Search Engine version 6.0 build 1017.)
Comment