RichTextBox for WPF | ComponentOne
System.Web Namespace / HttpUtility Class / HtmlEncode Method / HtmlEncode(String,TextWriter) Method
The string to encode.
The TextWriter output stream containing the encoded string.

In This Topic
    HtmlEncode(String,TextWriter) Method
    In This Topic
    HTML-encodes a string and sends the resulting output to a TextWriter output stream.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub HtmlEncode( _
       ByVal s As String, _
       ByVal output As TextWriter _
    ) 
    public static void HtmlEncode( 
       string s,
       TextWriter output
    )

    Parameters

    s
    The string to encode.
    output
    The TextWriter output stream containing the encoded string.
    See Also