rss

rss

rss

Provides utilities for working with RSS XML feeds.

Metadata

getChannelAttribs()

Arguments

Name Type Required Default Options Description
xml string Yes

getItemsAsArray()

Arguments

Name Type Required Default Options Description
xml string Yes
version string No
stripHTML boolean No true
truncate boolean No true

getVersion()

Return the RSS version for the XML feed. Results can be either 0.91, 0.92, 1.0, 2.0 or unknown.

Arguments

Name Type Required Default Options Description
xml string Yes

HTMLStripper()

Strips HTML from a string

Arguments

Name Type Required Default Options Description
string string Yes The String to be stripped

parseRSSDate()

Syndicated feeds use a variety of date formats. This function helps to decipher the date from the most common formats. Unknown dates are returned as empty strings. Parsed date times are returned in ODBC format.

Arguments

Name Type Required Default Options Description
dts string Yes Date time stamp.