Skip to content

Fixed Pawchive: missing content from unescaped <>-wrapped chapter text#2805

Open
Fox6935 wants to merge 1 commit into
dteviot:ExperimentalTabModefrom
Fox6935:patch-1
Open

Fixed Pawchive: missing content from unescaped <>-wrapped chapter text#2805
Fox6935 wants to merge 1 commit into
dteviot:ExperimentalTabModefrom
Fox6935:patch-1

Conversation

@Fox6935

@Fox6935 Fox6935 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem

This is not strictly an issue with the parser. Some authors, particularly LitRPG authors, wrap text such as system messages in angle brackets (<>).

The API does not always escape these characters correctly. As a result, both the Pawchive website and the WebToEpub parser interpret valid chapter content as HTML tags. This is primarily an API issue, but this change provides a workaround on the parser side.

The following chapter and API links demonstrate the issue. The chapter is supposed to contain numerous angle-bracketed messages, including one at the very beginning. However, the first paragraph is missing from the website because the website is affected by the same issue:

Fix

Before sanitizing Pawchive chapter content, detect angle-bracket expressions whose tag names are not recognized HTML elements and escape them as text.

Recognized HTML tags, including tags with attributes, are left unchanged.

Updated PawchiveParser to escape unknown HTML tags and added a check for known HTML tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant