Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / StringHelper Class / StripHtml Method / StripHtml(String,Boolean) Method
String to remove HTML from
If true, the output is HTML encoded after tags are stripped.
In This Topic
    StripHtml(String,Boolean) Method
    In This Topic
    Strips the HTML tags from the input string.
    Syntax
    public static string StripHtml( 
       string value,
       bool encode
    )

    Parameters

    value
    String to remove HTML from
    encode
    If true, the output is HTML encoded after tags are stripped.

    Return Value

    A string without any HTML tags, optionally HTML encoded
    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