diff --git a/package.json b/package.json index 997e6790..f5de22ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "novelscraper", - "version": "1.0.6", + "version": "1.0.7", "description": "Educational app on how to web scrape novels from pirate sites.", "homepage": "https://github.com/dr-nyt/NovelScraper", "author": { diff --git a/src/app/boxnovel.service.ts b/src/app/boxnovel.service.ts index cdcca322..66d59a48 100644 --- a/src/app/boxnovel.service.ts +++ b/src/app/boxnovel.service.ts @@ -93,6 +93,8 @@ export class BoxnovelService { let chapterBody = "

" + chapterTitle + "

"; chapterBody += chapterHtml.outerHTML; + chapterBody = chapterBody.replace(/
/g, "
"); + console.log(chapterBody); chapterBody += "

" chapterBody += "

dr-nyt's NovelScraper scraped this novel from a pirate site.

" chapterBody += "

If you can, please support the author(s) of this novel: " + novel.info.author + "

" diff --git a/src/app/readlightnovel.service.ts b/src/app/readlightnovel.service.ts index 4abf24c1..57dbc073 100644 --- a/src/app/readlightnovel.service.ts +++ b/src/app/readlightnovel.service.ts @@ -88,6 +88,8 @@ export class ReadlightnovelService { let chapterBody = "

" + chapterTitle + "

"; chapterBody += chapterHtml.outerHTML; + chapterBody = chapterBody.replace(/
/g, "
"); + console.log(chapterBody); chapterBody += "

" chapterBody += "

dr-nyt's NovelScraper scraped this novel from a pirate site.

" chapterBody += "

If you can, please support the author(s) of this novel: " + novel.info.author + "

"