- return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/, '>' );\r
- },\r
-\r
- /**\r
- * Replace characters can't be represented through CSS Selectors string\r
- * by CSS Escape Notation where the character escape sequence consists\r
- * of a backslash character (\) followed by the orginal characters.\r
- * Ref: http://www.w3.org/TR/css3-selectors/#grammar\r
- * @param cssSelectText\r
- * @return the escaped selector text.\r
- */\r
- escapeCssSelector : function( cssSelectText )\r
- {\r
- return cssSelectText.replace( /[\s#:.,$*^\[\]()~=+>]/g, '\\$&' );\r
+ return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/g, '>' );\r