If the title field is blank in an XML feed, the title is constructed from the description. However, this description often has HTML code in it, and the _parser_common_syndication_title does not handle that case. I added strip_tags to line 534 of common_syndication_parser.inc, changing that line to:

$words = preg_split("/[\s,]+/", strip_tags($body));

and now the generated titles look all right (i.e., no HTML).

CommentFileSizeAuthor
#1 750168-1_strip_tags.patch836 bytesalex_b
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Version: 6.x-1.0-alpha12 » 6.x-1.x-dev
Status: Active » Needs review
FileSize
836 bytes

Good catch. Rolled a patch of your report.

alex_b’s picture

Status: Needs review » Fixed

Committed, thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.