AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

StringExtensions Methods

The StringExtensions type exposes the following members.

Methods


  Name Description
Public method Static member Escape
Escapes the specified string in a compatible format with the Javascript escape method.
Public method Static member HTMLDecode
HTMLs the decode.
Public method Static member HTMLEncode
HTMLs the encode.
Public method Static member IsGuid
Determines whether the specified s is unique identifier.
Public method Static member JavaScriptDeserialize
Javas the script deserialize.
Public method Static member JavaScriptSerialize
Javas the script serialize.
Public method Static member Left
Returns the left part of this string instance.
Public method Static member ReplaceFirst
A string extension method that replace first occurence.
Public method Static member Right
Returns the right part of the string instance.
Public method Static member SafeString
Safes the string.
Public method Static member Shorten(String, Int32, Boolean)
Gets a Shortened version of a string
Public method Static member Shorten(String, Int32, Boolean, Boolean%)
Gets a Shortened version of a string
Public method Static member StripHTML
Strips the HTML.
Public method Static member ToAlphaNumeric
Converts to alphanumeric.
Public method Static member ToCamelCase
Converts to camelcase.
Public method Static member ToDateTime
Converts to datetime.
Public method Static member ToDouble
Converts to double.
Public method Static member ToGuid
Converts to guid.
Public method Static member ToInteger
Converts to integer.
Public method Static member ToLineBreakToHtml
Converts to linebreaktohtml.
Public method Static member ToSpaceToHtml
Converts to spacetohtml.
Public method Static member ToTabToHtml
Converts to tabtohtml.
Public method Static member TrimPunctuation
Trims the punctuation.
Public method Static member TrimWhiteSpace
Trims the white space.
Public method Static member Unscape
Unescapes the specified string in a compatible format with the Javascript escape method.
Public method Static member UrlFriendly
Creates a string that is Url-friendly.