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).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 750168-1_strip_tags.patch | 836 bytes | alex_b |
Comments
Comment #1
alex_b commentedGood catch. Rolled a patch of your report.
Comment #2
alex_b commentedCommitted, thank you.