diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/classes/Escape.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/classes/Escape.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,1990 @@ + + + + + Escape - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

Escape Class

+
+ + + + + +
+ Defined in: escape/js/escape.js:1 +
+ + + + + Module: escape + + + + +
+ + + +
+

Provides utility methods for escaping strings.

+
+ + + +
+ + +
+
+

Item Index

+ + +
+

Methods

+ + +
+ + + + + + + +
+ + +
+

Methods

+ + +
+

_htmlReplacer

+ + +
+ (
    + +
  • + + match + +
  • + +
) +
+ + + + + String + + + + + + + protected + + + + + + static + + + + + + +
+ + + +

+ + Defined in + + + + + escape/js/escape.js:71 + +

+ + + + + +
+ +
+

Regex replacer for HTML escaping.

+
+ + +
+

Parameters:

+ +
    + +
  • + + match + String + + + + +
    +

    Matched character (must exist in HTML_CHARS).

    +
    + + +
  • + +
+
+ + + +
+

Returns:

+ +
+ + + String: + + HTML entity. + +
+
+ + + +
+ + +
+

html

+ + +
+ (
    + +
  • + + string + +
  • + +
) +
+ + + + + String + + + + + + + + + + + static + + + + + + +
+ + + +

+ + Defined in + + + + + escape/js/escape.js:23 + +

+ + + + + +
+ +
+

Returns a copy of the specified string with special HTML characters +escaped. The following characters will be converted to their +corresponding character entities:

+ +
& < > " ' / `
+
+ +

This implementation is based on the OWASP HTML escaping +recommendations. In addition to the characters in the OWASP +recommendations, we also escape the ` character, since IE +interprets it as an attribute delimiter.

+ +

If string is not already a string, it will be coerced to a string.

+
+ + +
+

Parameters:

+ +
    + +
  • + + string + String + + + + +
    +

    String to escape.

    +
    + + +
  • + +
+
+ + + +
+

Returns:

+ +
+ + + String: + + Escaped string. + +
+
+ + + +
+ + +
+

regex

+ + +
+ (
    + +
  • + + string + +
  • + +
) +
+ + + + + String + + + + + + + + + + + static + + + + + + +
+ + + +

+ + Defined in + + + + + escape/js/escape.js:48 + +

+ + + + + +
+ +
+

Returns a copy of the specified string with special regular expression +characters escaped, allowing the string to be used safely inside a regex. +The following characters, and all whitespace characters, are escaped:

+ +
- $ ^ * ( ) + [ ] { } | \ , . ?
+
+ +

If string is not already a string, it will be coerced to a string.

+
+ + +
+

Parameters:

+ +
    + +
  • + + string + String + + + + +
    +

    String to escape.

    +
    + + +
  • + +
+
+ + + +
+

Returns:

+ +
+ + + String: + + Escaped string. + +
+
+ + + +
+ + +
+ + + + + + + +
+
+ +
+
+
+
+
+
+ + + + + + + + + +