add some ;, remove print statement

This commit is contained in:
j 2011-10-24 15:13:00 +02:00
commit 3bb224a022
4 changed files with 8 additions and 8 deletions

View file

@ -85,11 +85,11 @@ Ox.parseHTML = (function() {
html = Ox.encodeHTML(html);
html = Ox.parseURLs(html);
html = Ox.parseEmailAddresses(html);
Ox.print(html, 'matches', matches);
//Ox.print('Ox.parseHTML', html, 'matches', matches);
matches.forEach(function(match, i) {
html = html.replace(new RegExp(tab + i + tab, 'gi'), match);
});
html = html.replace(/\n/g, '<br/>\n')
html = html.replace(/\n/g, '<br/>\n');
// close extra opening (and remove extra closing) tags
// note: this converts '&quot;' to '"'
return Ox.element('<div>').html(html).html();
@ -156,4 +156,4 @@ Ox.parseURLs = function(html) {
);
}
);
};
};