Skip to content

Commit 29250db

Browse files
author
Ubuntu
committed
update readme
1 parent a43a557 commit 29250db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ parser.parseURL('https://reddit.com/.rss', function(err, parsed) {
2929
### Web
3030
```html
3131
<script src="/bower_components/rss-parser/dist/rss-parser.js"></script>
32+
<script>
3233
RSSParser.parseURL('https://reddit.com/.rss', function(err, parsed) {
3334
console.log(parsed.feed.title);
3435
parsed.feed.entries.forEach(function(entry) {
3536
console.log(entry.title + ':' + entry.link);
3637
})
3738
})
39+
</script>
3840
```
3941

4042
rss-parser also exposes `parseString` and `parseFile` functions.

0 commit comments

Comments
 (0)