Skip to content

an angled bracket in title #165

Open
@piptan

Description

@piptan

Hi,

If I put the following feed into the library -

`
<rss version="2.0">

<title>W3Schools Home Page</title> http://www.w3schools.com Free web building tutorials <title>RSS <<<Tutorial>>></title> http://www.w3schools.com/xml/xml_rss.asp New RSS tutorial on W3Schools `

The parsed output is -

{
  title: 'RSS >>',
  description: 'New RSS tutorial on W3Schools',
  summary: 'New RSS tutorial on W3Schools',
  date: null,
  pubdate: null,
  pubDate: null,
  link: 'http://www.w3schools.com/xml/xml_rss.asp',
  guid: 'http://www.w3schools.com/xml/xml_rss.asp',
  author: null,
  comments: null,
  origlink: null,
  image: {},
  source: {},
  categories: [],
  enclosures: [],
  'rss:@': {},
  'rss:title': { '@': {}, '#': 'RSS <<<Tutorial>>>' },
  'rss:link': { '@': {}, '#': 'http://www.w3schools.com/xml/xml_rss.asp' },
  'rss:description': { '@': {}, '#': 'New RSS tutorial on W3Schools' },
}

Please note how title contains the incorrect text, but rss:title has the right content.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions