New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Parses and sanitizes paired character sequences in strings.

Definition

Namespace:Telerik.Web.UI.Editor.Content

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class InPairStringParser

Inheritance: objectInPairStringParser

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance for parsing paired characters.

C#
public InPairStringParser(char pairChar)
Parameters:pairCharchar

The character used for pairing.

Methods

Removes the first occurrence of a paired character sequence from the input, starting at the specified index.

C#
public string Sanitize(string input, int startIndex)
Parameters:inputstring

The input string to sanitize.

startIndexint

The index to start searching for the pair.

Returns:

string

The sanitized string.