').append(structs[j]);
$.each(code.find('a'), function(idx, a) {
var href = $(a).attr('href');
- if (href && !href.startsWith('http')) {
+ if (href && href.indexOf('http') !== 0) {
$(a).attr('href', rootPath + href);
}
});