Clear Up
SharpKit Reference

HtmlContext.encodeURIComponent Method (JsString)

Encodes a text JsString as a valid component of a Uniform Resource Identifier (URI).

Namespace: SharpKit.Html4

Class: HtmlContext

Syntax

public static JsString encodeURIComponent(JsString encodedURIString)

Parameters

encodedURIString
Type: SharpKit.JavaScript.JsString
A value representing an encoded URI component.

Return Value

Type: SharpKit.JavaScript.JsString
A an encoded URI. If you pass the result to decodeURIComponent, the original JsString is returned. Because the encodeURIComponent method encodes all characters, be careful if the JsString represents a path such as /folder1/folder2/default.html. The slash characters will be encoded and will not be valid if sent as a request to a web server. Use the encodeURI method if the JsString contains more than a single URI component.
© Copyright 2005-2011 SharpKit. All rights reserved.