#1027454 by amateescu, montesq, jhodgdon: Fixed _aggregator_parse_opml() documentation contains escaped HTML tags that should be removed.

merge-requests/26/head
Angie Byron 2011-01-28 07:47:28 +00:00
parent 66dc2c3d4b
commit ae433184f5
1 changed files with 7 additions and 6 deletions

View File

@ -350,16 +350,17 @@ function aggregator_form_opml_submit($form, &$form_state) {
/** /**
* Parse an OPML file. * Parse an OPML file.
* *
* Feeds are recognized as <outline> elements with the attributes * Feeds are recognized as <outline> elements with the attributes "text" and
* <em>text</em> and <em>xmlurl</em> set. * "xmlurl" set.
* *
* @param $opml * @param $opml
* The complete contents of an OPML document. * The complete contents of an OPML document.
*
* @return * @return
* An array of feeds, each an associative array with a <em>title</em> and * An array of feeds, each an associative array with a "title" and a "url"
* a <em>url</em> element, or NULL if the OPML document failed to be parsed. * element, or NULL if the OPML document failed to be parsed. An empty
* An empty array will be returned if the document is valid but contains * array will be returned if the document is valid but contains no feeds, as
* no feeds, as some OPML documents do. * some OPML documents do.
*/ */
function _aggregator_parse_opml($opml) { function _aggregator_parse_opml($opml) {
$feeds = array(); $feeds = array();