Clear Up
SharpKit Reference

HtmlContext.escape Method (JsString)

Encodes String objects so they can be read on all computers.

Namespace: SharpKit.Html4

Class: HtmlContext


public static JsString escape(JsString s)


Type: SharpKit.JavaScript.JsString
String object or literal to be encoded.

Return Value

Type: SharpKit.JavaScript.JsString
A JsString value (in Unicode format) that contains the contents of charstring. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20."
© Copyright 2005-2011 SharpKit. All rights reserved.