We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eca10f commit e134f85Copy full SHA for e134f85
Source/Schema.NET/Thing.Partial.cs
@@ -8,13 +8,19 @@
8
public partial class Thing : JsonLdObject
9
{
10
private const string ContextPropertyJson = "\"@context\":\"http://schema.org\",";
11
+
12
+ /// <summary>
13
+ /// Serializer settings used.
14
+ /// Note: Escapes HTML to avoid XSS vulnerabilities where user-supplied data is used.
15
+ /// </summary>
16
private static readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings()
17
18
Converters = new List<JsonConverter>()
19
20
new StringEnumConverter()
21
},
- NullValueHandling = NullValueHandling.Ignore
22
+ NullValueHandling = NullValueHandling.Ignore,
23
+ StringEscapeHandling = StringEscapeHandling.EscapeHtml
24
};
25
26
/// <summary>
0 commit comments