mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 17:34:47 +00:00
fix & & problem in title; Issue #10
This commit is contained in:
parent
1bfaa75c12
commit
eefc97bdfb
3 changed files with 22 additions and 8 deletions
|
@ -154,8 +154,7 @@ function force($content, withError) {
|
|||
contentString = contentString.replace(/ /gi, ' ');
|
||||
|
||||
// getHref() replace does not work (& is overwritten)
|
||||
contentString = contentString.replace(/&/ig, '&');
|
||||
contentString = contentString.replace(/&/ig, '&');
|
||||
contentString = escapeAmp(contentString);
|
||||
|
||||
return contentString;
|
||||
} catch (e) {
|
||||
|
@ -284,6 +283,7 @@ function getPageTitle(title) {
|
|||
if (title.trim().length === 0) {
|
||||
return 'ebook';
|
||||
}
|
||||
title = escapeAmp(title);
|
||||
return title;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue