FeedReader.Recovery.Entities (FeedReader v0.1.0)

Copy Markdown

Recovers entity and markup irregularities in streamed XML.

Some feeds contain raw ampersands or malformed entity references that Saxy rejects. This module preserves valid named and numeric entities, escapes invalid references, and leaves CDATA and comments untouched. Its scanner carries incomplete entities and markup delimiters between chunks so the result does not depend on the input chunk size.

Summary

Functions

Escapes invalid entity references while preserving CDATA and comments.

Functions

normalize(input)

Escapes invalid entity references while preserving CDATA and comments.