HtmlFormatterOptions Class

Provides options for formatting HTML.

public sealed class HtmlFormatterOptions : IEquatable<HtmlFormatterOptions>
Implements

Constructors

NameDescription
HtmlFormatterOptions()

HtmlFormatterOptions()

public HtmlFormatterOptions()

No documentation is available.

Properties

NameDescription
AttributeQuoteGets or sets the quote style to use for attribute values.
OrderAttributesGets or sets whether to order attributes alphabetically.
RedactContentSecurityPolicyNonceGets or sets whether to redact Content Security Policy nonce values.

Gets or sets the quote style to use for attribute values.

public HtmlAttributeQuote? AttributeQuote { get; set; }

Property value

HtmlAttributeQuote?

Gets or sets whether to order attributes alphabetically.

public bool OrderAttributes { get; set; }

Property value

bool

RedactContentSecurityPolicyNonce

HtmlFormatterOptions.cs

Gets or sets whether to redact Content Security Policy nonce values.

public bool RedactContentSecurityPolicyNonce { get; set; }

Property value

bool

Methods

NameDescription
Equals(HtmlFormatterOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(HtmlFormatterOptions?)

public bool Equals(HtmlFormatterOptions? other)
Parameters
other HtmlFormatterOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(HtmlFormatterOptions?, HtmlFormatterOptions?)
operator !=(HtmlFormatterOptions?, HtmlFormatterOptions?)

operator ==(HtmlFormatterOptions?, HtmlFormatterOptions?)

public static bool operator ==(HtmlFormatterOptions? left, HtmlFormatterOptions? right)

No documentation is available.

operator !=(HtmlFormatterOptions?, HtmlFormatterOptions?)

public static bool operator !=(HtmlFormatterOptions? left, HtmlFormatterOptions? right)

No documentation is available.