This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ++ Condense XML | |
//---------------------------------------------- | |
String.prototype.trimXML = function () { | |
return this.replace(/>[\s]*</g, "><"); | |
}; | |
// ++ Return the content of a tag | |
//---------------------------------------------- | |
String.prototype.getTag = function (tag) { | |
var array = this.match(new RegExp('\\<' + tag + '\\>(.*?)(?=\\<\\/' + tag + '\\>)')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.dataTableExt.ofnSearch['html'] = function ( sData ) { | |
var n = document.createElement('div'); | |
n.innerHTML = sData; | |
if ( n.textContent ) { | |
return n.textContent.replace(/\n/g," "); | |
} else { | |
return n.innerText.replace(/\n/g," "); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ++ Array Remove - By John Resig (MIT Licensed) | |
//---------------------------------------------- | |
Array.prototype.remove = function(from, to) { | |
var rest = this.slice((to || from) + 1 || this.length); | |
this.length = from < 0 ? this.length + from : from; | |
return this.push.apply(this, rest); | |
}; | |
// ++ Trim spaces | |
//---------------------------------------------- |
NewerOlder