-1){
var end=txt.indexOf(tags[loc],a+tags[i].length);
var innerScript=txt.substring(a+tags[i].length,end);
var row=txt.substring(start,a) +'\n'+tb+ tags[i] +'\n'+ innerScript +'\n'+ tb+ tags[loc]; // include text ahead of tag.
start = end+tags[loc].length;
i=loc;
priortype=-1;
}
else{
// not a full script, but try
var row = txt.substring(start,a)+'\n'+tb+tags[i];
start = a+tags[i].length;
}
}
else {
//var row = txt.substring(start,a)+'\n'+tb+tags[i]+'\n';
var row = txt.substring(start,a)+'\n'+tb+tags[i];
start = a+tags[i].length;
}
code+= row;
}
code+=txt.substring(start,txt.length);
return code;
}
function parseStyles(styleblock){
var matches=styleblock.match(/\(.+?\)|\/\*.+?\*\//g) // gather the attributes and comments and innoculate punctuation
if (matches){
for (i=0; i Paste your HTML code here:
Preview and copy your code here: This tool will convert runs of tabs, spaces,
and hard spaces (like 0160, A0, and ) to single soft spaces.
If using hard spaces to format text, those will be lost.
Line breaks can be preserved with the left-align option or can be removed with the condensed option.
The condensed option is perfect for eBay's File Exchange. The CSV option will double any embedded quotes to conform with a hand-coded CSV text file. The unwrap option will expand previously compressed HTML by placing each HTML tag on a new line with indenting.
CSS style sheets will be similarly expanded. Script blocks will not be addressed, as scripts are no longer allowed on eBay.
Note that this is a primitive expansion and may not correctly address all cases,
so check the preview before accepting the expanded version. The tool will normally process the entire code box.
However, if a selection is made, then only the selected area will be modified
and the entire code will still be output with the modified selection.
courtesy of eBay user shipscript
Compression tool for eBay Description
Remove line breaks, tabs, hard spaces, and excess white space from your HTML
copyright 2019 © isdntek.com