mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-07 16:09:11 +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');
|
||||
contentString = contentString.replace(tagOpenRegex, '<');
|
||||
contentString = contentString.replace(tagCloseRegex, '>');
|
||||
contentString = contentString.replace(/&/gi, '&');
|
||||
contentString = contentString.replace(/&/gi, '&');
|
||||
contentString = contentString.replace(/&nbsp;/gi, ' ');
|
||||
|
||||
return contentString;
|
||||
} catch (e) {
|
||||
|
@ -257,9 +256,7 @@ function sanitize(rawContentString) {
|
|||
}
|
||||
});
|
||||
|
||||
results = results.replace(/&/gi, '&');
|
||||
results = results.replace(/&/gi, '&');
|
||||
results = results.replace(/&nbsp;/gi, ' ');
|
||||
results = results.replace(/ /gi, ' ');
|
||||
|
||||
return results;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue