mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Undo XML parser customizations (#683)
* Undo XML parser customizations These did more harm then good, breaking many legit feeds in weird ways. * Undo changelog --------- Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com> Co-authored-by: Will Hunt <will@half-shot.uk>
This commit is contained in:
parent
f6475a5182
commit
5ccd64acd8
@ -1 +0,0 @@
|
||||
Relax the Feed parser so that it allows RSS feeds with HTML elements in them.
|
@ -89,14 +89,7 @@ function normalizeUrl(input: string): string {
|
||||
|
||||
export class FeedReader {
|
||||
|
||||
private readonly parser = new Parser({
|
||||
xml2js: {
|
||||
// Allow HTML bodies, such as value-less attributes.
|
||||
strict: false,
|
||||
// The parser will break if we don't do this, as it defaults to `res.FEED` rather than `res.feed`.
|
||||
normalizeTags: true,
|
||||
}
|
||||
});
|
||||
private readonly parser = new Parser();
|
||||
|
||||
private connections: FeedConnection[];
|
||||
// ts should notice that we do in fact initialize it in constructor, but it doesn't (in this version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user