I've been using Microsoft's AntiXss Library and was wondering if there is a good reason why its JavaScriptEncode
method wraps the result in single quotes? That behavior seems unconventional.
Actually the new 3.0beta version has a flag JavaScriptEncode(string input, bool flagforQuote). Setting it to false, yields a result without quotes.