Catch another case of feed markup not being converted to text
This commit is contained in:
parent
f48f47f372
commit
883007c05d
1 changed files with 8 additions and 1 deletions
|
@ -29,7 +29,6 @@ feed_get_element_string (FeedParser* fparser)
|
||||||
*/
|
*/
|
||||||
return g_strdup (" ");
|
return g_strdup (" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
return (gchar*)xmlNodeListGetString (fparser->doc, node->children, 1);
|
return (gchar*)xmlNodeListGetString (fparser->doc, node->children, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +73,14 @@ gchar*
|
||||||
feed_get_element_markup (FeedParser* fparser)
|
feed_get_element_markup (FeedParser* fparser)
|
||||||
{
|
{
|
||||||
gchar* markup;
|
gchar* markup;
|
||||||
|
xmlNodePtr node = fparser->node;
|
||||||
|
|
||||||
|
if (node->children &&
|
||||||
|
!xmlIsBlankNode (node->children) &&
|
||||||
|
node->children->type == XML_ELEMENT_NODE)
|
||||||
|
{
|
||||||
|
return (gchar*) xmlNodeGetContent (node->children);
|
||||||
|
}
|
||||||
|
|
||||||
markup = feed_get_element_string (fparser);
|
markup = feed_get_element_string (fparser);
|
||||||
return feed_remove_markup (markup);
|
return feed_remove_markup (markup);
|
||||||
|
|
Loading…
Reference in a new issue