misc fixes for Google Play Books upload issue

This commit is contained in:
alexadam 2017-07-14 22:00:25 +03:00
parent e4f6940ecc
commit 5f01a960f1
3 changed files with 7 additions and 4 deletions

View file

@ -216,7 +216,7 @@ function sanitize(rawContentString) {
tmpAttrsTxt += ' class="' + attrs[i].value + '"';
}
}
lastFragment = tmpAttrsTxt.length === 0 ? '<img></img>' : '<img ' + tmpAttrsTxt + '" alt=""></img>';
lastFragment = tmpAttrsTxt.length === 0 ? '<img></img>' : '<img ' + tmpAttrsTxt + ' alt=""></img>';
} else if (tag === 'a') {
var tmpAttrsTxt = '';
for (var i = 0; i < attrs.length; i++) {