/** * Look for potential script in the HTML code <script src="//cdn.server.com/jquery/1.3.3.7.js"></script> * @param respBytes Content of the JavaScript file (exclude HTTP headers) * @param offset * @return */ public List<JsLibraryResult> scanHtml(byte[] respBytes, int offset) { String contentString = new String(respBytes,offset,respBytes.length-offset); List<JsLibraryResult> res = new ArrayList<JsLibraryResult>(); for(String url : findScriptUrl(contentString)) { res.addAll(scanPath(url)); } return res; }