mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-09 17:04:39 +00:00
fix epubcheck error
This commit is contained in:
parent
36abc53ca0
commit
9f4b6be294
1 changed files with 2 additions and 5 deletions
|
@ -158,8 +158,7 @@ function force(contentString) {
|
||||||
var tagCloseRegex = new RegExp(tagClose, 'gi');
|
var tagCloseRegex = new RegExp(tagClose, 'gi');
|
||||||
contentString = contentString.replace(tagOpenRegex, '<');
|
contentString = contentString.replace(tagOpenRegex, '<');
|
||||||
contentString = contentString.replace(tagCloseRegex, '>');
|
contentString = contentString.replace(tagCloseRegex, '>');
|
||||||
contentString = contentString.replace(/&/gi, '&');
|
contentString = contentString.replace(/&nbsp;/gi, ' ');
|
||||||
contentString = contentString.replace(/&/gi, '&');
|
|
||||||
|
|
||||||
return contentString;
|
return contentString;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -257,9 +256,7 @@ function sanitize(rawContentString) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
results = results.replace(/&/gi, '&');
|
results = results.replace(/ /gi, ' ');
|
||||||
results = results.replace(/&/gi, '&');
|
|
||||||
results = results.replace(/&nbsp;/gi, ' ');
|
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue