Interface IHtmlService
Interface representing a service for processing Html content
Namespace: DataWeb.Text.Html
Assembly: DataWeb.Core.dll
Syntax
public interface IHtmlService
Properties
Name
Gets the name of the Html service
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
ConvertToText(string)
Converts Html content to plain text
Declaration
string ConvertToText(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The Html content to convert |
Returns
Type | Description |
---|---|
string | The plain text representation of the Html content |
RemoveInvalidHtmlTags(string)
Removes invalid Html tags from the provided string
Declaration
string RemoveInvalidHtmlTags(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to process |
Returns
Type | Description |
---|---|
string | The processed string with invalid Html tags removed |
ReplaceHtmlEntities(string)
Replaces Html entities in the provided string
Declaration
string ReplaceHtmlEntities(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to process |
Returns
Type | Description |
---|---|
string | The processed string with Html entities replaced |
StripHtml(string)
Strips Html tags from the provided string
Declaration
string StripHtml(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to process |
Returns
Type | Description |
---|---|
string | The processed string with all Html tags removed |