I'm trying to use TagBuilder to build a tag with multiple classes, but I'm hitting a snag. We use the AntiXssEncoder. When I add multiple classes to TagBuilder, it apparently calls encode on it at some point.
That may work in a default environment, but if the encoder has been replaced with something more stringent, then things like the spaces in my "class" attribute get encoded, etc., which breaks all kinds of things.
Is there any way to turn off attribute encoding for a given TagBuilder instance?