From 6822f490c48ff8b802e9b23a3efe5cc919a24e7e Mon Sep 17 00:00:00 2001 From: Shehryar Date: Sun, 26 Jul 2020 01:15:01 +0400 Subject: [PATCH] version 1.0.7 --- package.json | 2 +- src/app/boxnovel.service.ts | 2 ++ src/app/readlightnovel.service.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) 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 + "

"