Changeset 241 for trunk/common
- Timestamp:
- 11/02/07 17:06:58 (2 years ago)
- Files:
-
- 1 modified
-
trunk/common/Core.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/Core.js
r238 r241 452 452 453 453 454 escapeJS2: function() {455 return this.replace( /([\u0000-\u0031'"\\])/g, function( m, c ) { return String.escapeJSChar( c ); } )456 },457 458 459 escapeJS3: function() {460 return this.replace( /[\u0000-\u0031'"\\]/g, function( m ) { return String.escapeJSChar( m ); } )461 },462 463 464 escapeJS4: function() {465 return this.replace( /./g, function( m ) { return String.escapeJSChar( m ); } )466 },467 468 469 454 encodeHTML: function() { 470 455 return this.replace( /([<>&"])/g, function( m, c ) { return String.encodeEntity( c ) } ); /* fix syntax highlight: " */
