mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
rebuilt tests using tape, prova.
This commit is contained in:
@@ -59,10 +59,11 @@ feed.item(itemOptions);
|
||||
#### Feed XML
|
||||
|
||||
```js
|
||||
var xml = feed.xml(indent);
|
||||
var xml = feed.xml({indent: true});
|
||||
```
|
||||
|
||||
This returns the XML as a string.
|
||||
|
||||
`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).
|
||||
For example you can use `'\t'` for tab character, or `' '` for two-space tabs.
|
||||
`indent` _optional_ **boolean or string** What to use as a tab. Defaults to no tabs (compressed).
|
||||
For example you can use `'\t'` for tab character, or `' '` for two-space tabs. If you set it to
|
||||
`true` it will use four spaces.
|
||||
|
||||
Reference in New Issue
Block a user