That would be much nicer but unfortunately the Razor Generator generates the following with no null check prior to writing out the class attribute:

```cs
WebViewPage.WriteLiteralTo(@__razor_helper_writer, "            <dd class=\"");
WebViewPage.WriteTo(@__razor_helper_writer, fieldConfiguration.FieldContainerClasses);
WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">\r\n");
```
So it solves the encoding but not the empty attribute...

I've changed the implementation, looks a bit better, see what you think.