MagicCMS Documentation

StringHtmlExtensions Members

The StringHtmlExtensions type exposes the following members.

Methods


  Name Description
Public method Static member RenderControlToHtml
Renders a control to HTML string.
Public method Static member StripHtml
Strips all HTML tags from a string
Public method Static member Truncate(String, Int32)
Truncates text to a number of characters
Public method Static member Truncate(String, Int32, String)
Truncates text to a number of characters and adds trailing text, i.e. elipses, to the end
Public method Static member 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.
Public method Static member 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.
Public method Static member TruncateWords(String, Int32)
Truncates text and discars any partial words left at the end
Public method Static member TruncateWords(String, Int32, String)
Truncates text and discars any partial words left at the end