Class HtmlUtilities
Contains helper methods to convert html to plain text
Inheritance
System.Object
HtmlUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Framework.Base
Assembly: Simplic.Framework.Base.dll
Syntax
public class HtmlUtilities
Methods
| Improve this Doc View SourceConvertToPlainText(String)
Converts HTML to plain text / strips tags.
Declaration
public static string ConvertToPlainText(string html)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | The HTML. |
Returns
Type | Description |
---|---|
System.String |
CountWords(String)
Count the words. The content has to be converted to plain text before (using ConvertToPlainText).
Declaration
public static int CountWords(string plainText)
Parameters
Type | Name | Description |
---|---|---|
System.String | plainText | The plain text. |
Returns
Type | Description |
---|---|
System.Int32 |
Cut(String, Int32)
Declaration
public static string Cut(string text, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.String |