HtmlForgeX

API Reference

Class

TrustedHtmlJsonConverter

Namespace HtmlForgeX
Assembly HtmlForgeX
Base JsonConverter<TrustedHtml>
Modifiers sealed

Serializes explicitly trusted HTML as a JSON string for third-party component configuration.

Inheritance

  • JsonConverter<TrustedHtml>
  • TrustedHtmlJsonConverter

Constructors

public TrustedHtmlJsonConverter() #

Methods

public override TrustedHtml Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Returns: TrustedHtml

Parameters

reader System.Text.Json.Utf8JsonReader@ requiredposition: 0
typeToConvert System.Type requiredposition: 1
options System.Text.Json.JsonSerializerOptions requiredposition: 2
public override Void Write(Utf8JsonWriter writer, TrustedHtml value, JsonSerializerOptions options) #
Returns: Void

Parameters

writer System.Text.Json.Utf8JsonWriter requiredposition: 0
value HtmlForgeX.TrustedHtml requiredposition: 1
options System.Text.Json.JsonSerializerOptions requiredposition: 2