Loading tools/droiddoc/templates-sac/assets/js/docs.js +1 −11 Original line number Diff line number Diff line Loading @@ -2015,10 +2015,7 @@ $(window).hashchange( function(){ }); function updateResultTitle(query) { $("#searchTitle").html("Results for <em>" + (query) + "</em>"); // For some reason, the escapeHTML function wasn't working for me. TODO fix // this by copying in a comparable library function. // $("#searchTitle").html("Results for <em>" + escapeHTML(query) + "</em>"); $("#searchTitle").html("Results for <em>" + encodeURIComponent(query) + "</em>"); } // forcefully regain key-up event control (previously jacked by search api) Loading Loading @@ -2055,13 +2052,6 @@ function getQuery(hash) { return queryParts[1]; } /* returns the given string with all HTML brackets converted to entities TODO: move this to the site's JS library */ function escapeHTML(string) { return string.replace(/</g,"<") .replace(/>/g,">"); } /* ######################################################## */ /* ################# JAVADOC REFERENCE ################### */ Loading Loading
tools/droiddoc/templates-sac/assets/js/docs.js +1 −11 Original line number Diff line number Diff line Loading @@ -2015,10 +2015,7 @@ $(window).hashchange( function(){ }); function updateResultTitle(query) { $("#searchTitle").html("Results for <em>" + (query) + "</em>"); // For some reason, the escapeHTML function wasn't working for me. TODO fix // this by copying in a comparable library function. // $("#searchTitle").html("Results for <em>" + escapeHTML(query) + "</em>"); $("#searchTitle").html("Results for <em>" + encodeURIComponent(query) + "</em>"); } // forcefully regain key-up event control (previously jacked by search api) Loading Loading @@ -2055,13 +2052,6 @@ function getQuery(hash) { return queryParts[1]; } /* returns the given string with all HTML brackets converted to entities TODO: move this to the site's JS library */ function escapeHTML(string) { return string.replace(/</g,"<") .replace(/>/g,">"); } /* ######################################################## */ /* ################# JAVADOC REFERENCE ################### */ Loading