Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlUrlPolicyEvaluator

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
static

Evaluates and resolves URL values against a shared HtmlUrlPolicy.

Inheritance

  • object
  • HtmlUrlPolicyEvaluator

Methods

public static bool IsAllowed(string? rawUrl, HtmlUrlPolicy? policy, bool allowEmptyFragment = true) #

Returns true when the raw URL value is allowed by the supplied policy.

Parameters

rawUrl string? required
policy OfficeIMO.Html.HtmlUrlPolicy? required
allowEmptyFragment bool = true optional

Returns

bool
public static string ResolveUrl(string? rawUrl, Uri? baseUri, HtmlUrlPolicy? policy, bool allowEmptyFragment = true) #

Resolves a raw URL against an optional base URI and returns an empty string when policy rejects it.

Parameters

rawUrl string? required
baseUri System.Uri? required
policy OfficeIMO.Html.HtmlUrlPolicy? required
allowEmptyFragment bool = true optional

Returns

string