HtmlForgeX

API Reference

Class

TrustedHtml

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed
Attributes
JsonConverter(typeof(TrustedHtmlJsonConverter))

Represents HTML that the caller has explicitly verified and chosen to render without encoding.

Inheritance

  • Object
  • TrustedHtml

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public static TrustedHtml FromTrustedSource(String html) #
Returns: TrustedHtml

Marks HTML from a trusted source for intentional unencoded rendering. This method does not sanitize or validate the input.

Parameters

html System.String requiredposition: 0
public override String ToString() #
Returns: String