Responder Developer Guide
HtmlEncode Method


The string to encode.
Converts a string into an HTML-encoded string for reliable HTTP transmission from the Web server to a client.
Syntax
'Declaration
 
Public Shared Function HtmlEncode( _
   ByVal input As String _
) As String
'Usage
 
Dim input As String
Dim value As String
 
value = Global.HtmlEncode(input)
public static string HtmlEncode( 
   string input
)

Parameters

input
The string to encode.

Return Value

The encoded string.
Remarks

The HttpUtility.HtmlEncode does not convert everything that we need converted. Carriage-return sequences need to be converted to "
" for the multi-line strings to look correct in the browser.

If the text is going to be displayed in a "textarea" html element then you do not need carriage-returns to be converted, so you should just call HttpUtility.HtmlEncode directly.

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

Global Class
Global Members

 

 


Send Comment