Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / StringHelper Class / CleanupSpecialChars Method / CleanupSpecialChars(String,Char[],Char) Method
Input string
Array of other undesired characters that are not special but should be removed as well
The character to user for replacement
In This Topic
    CleanupSpecialChars(String,Char[],Char) Method
    In This Topic
    Cleans up special characters and other undesired characters from the given input string
    Syntax
    public static string CleanupSpecialChars( 
       string text,
       char[] undesiredChars,
       char replacementChar
    )

    Parameters

    text
    Input string
    undesiredChars
    Array of other undesired characters that are not special but should be removed as well
    replacementChar
    The character to user for replacement

    Return Value

    Input string without special characters and undesired characters
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also