JimmXinu / FanFicFare

FanFicFare is a tool for making eBooks from stories on fanfiction and other web sites.
Other
738 stars 156 forks source link

Storiesonline.net getting words as html tags when it this tool saves textContent in xhtml files. #996

Closed confident-hate closed 10 months ago

confident-hate commented 10 months ago

Hello, I just want to point out a little bug. When this tool parse text from storiesonline(on some chapters), it inserts non-html tags as html, which leads it to display error in epub file.

Website URL: https://storiesonline.net/s/57098:79310/deja-vu-ascendancy-chapter-2

Error text: This page contains the following errors: error on line 43 at column 40: error parsing attribute name Below is a rendering of the page up to the first error.

Error image: ScreenshotMiXplorer

xhtml file image with words as html tags: Screenshot_MiXplorer

JimmXinu commented 10 months ago

You'd have to take that up with the author. That's in the source material HTML:

<p>I followed up on the mouthless <What?> that I'd 'heard' back at the beginning, ...</p>

Although the closing </what?> was added by the HTML parser. It assumes tags it doesn't know need matching close tags.

Personally, I would just edit the epub manually. I don't plan to add special code for this source error.