StringHtmlExtensions Members
The StringHtmlExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
RenderControlToHtml |
Renders a control to HTML string.
|
![]() ![]() |
StripHtml |
Strips all HTML tags from a string
|
![]() ![]() |
Truncate(String, Int32) |
Truncates text to a number of characters
|
![]() ![]() |
Truncate(String, Int32, String) |
Truncates text to a number of characters and adds trailing text, i.e. elipses, to the end
|
![]() ![]() |
TruncateHtml(String, Int32, String) |
Truncates a string containing HTML to a number of text characters, keeping whole words.
The result contains HTML and any tags left open are closed.
|
![]() ![]() |
TruncateHtml(String, Int32) |
Truncates a string containing HTML to a number of text characters, keeping whole words.
The result contains HTML and any tags left open are closed.
|
![]() ![]() |
TruncateWords(String, Int32) |
Truncates text and discars any partial words left at the end
|
![]() ![]() |
TruncateWords(String, Int32, String) |
Truncates text and discars any partial words left at the end
|