C# extensions and tests for html serializer