/* (end) option hiding code */
-// A convenience function to sanitize raw text for harmful HTML before outputting
-function _escapeHTML(text) {
- return text.replace(/&/g, '&').
- replace(/</g, '<').
- replace(/>/g, '>');
-}
-
/**
* The Autoselect
*/
return stringified;
},
resultListFormat : function(oResultData, enteredText, sResultMatch) {
- return ( _escapeHTML(oResultData.real_name) + " (" + _escapeHTML(oResultData.name) + ")");
+ return ( YAHOO.lang.escapeHTML(oResultData.real_name) + " ("
+ + YAHOO.lang.escapeHTML(oResultData.name) + ")");
},
debug_helper : function ( ){
/* used to help debug any errors that might happen */