1
0
Fork 0
forked from 0x2620/oxjs

- add loadAsync and use in Ox.loadFile, Ox.getJSON

- add Ox.getJSONP
- fix Ox.parseHTML
- fix Ox.Doc
- add more documentation
This commit is contained in:
j 2012-05-23 01:17:17 +02:00
commit 1b08732fa7
8 changed files with 106 additions and 103 deletions

View file

@ -99,7 +99,7 @@ Ox.parseHTML = (function() {
//html = Ox.parseURLs(html);
//html = Ox.parseEmailAddresses(html);
matches.forEach(function(match, i) {
html = html.replace(new RegExp(tab + i + tab, 'gi'), match);
html = html.replace(new RegExp(tab + i + tab), match);
});
html = html.replace(/\n\n/g, '<br/><br/>');
// close extra opening (and remove extra closing) tags