This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IHtml>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.BeforeCreate
Handler
void HtmlBeforeCreateEventHandler(HtmlBeforeCreateEventArgs e);
Events.BeforeUpdate
Handler
void HtmlBeforeUpdateEventHandler(HtmlBeforeUpdateEventArgs e);
Events.Render
Handler
void HtmlRenderEventHandler(HtmlRenderEventArgs e);
Methods
string Decode(string html);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
html | string | Html | Required |
Return Type
string
string Encode(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string EncodeAttribute(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string EnsureEncoded(string html);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
html | string | Html | Required |
Return Type
string
string Sanitize(string html);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
html | string | Html | Required |
Return Type
string
string Sanitize(Guid contentTypeId, string html);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type Id | Required | ||
html | string | Html | Required |
Return Type
string
string Sanitize(string html, HtmlSanitizeOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
html | string | Html | Required | ||
options | HtmlSanitizeOptions | Options | Required |
Return Type
string