PROJET AUTOBLOG


Shaarli - le hollandais volant

Site original : Shaarli - le hollandais volant

⇐ retour index

php - Retrieving RSS feed with tag <content:encoded> - Stack Overflow

dimanche 11 mai 2014 à 18:24
Mh…
Voilà une solution bourrin pour récupérer les tags <content:encoded> dans les fichiers RSS : faire un str_replace et transformer le "content:encoded" en "contentencoded".
On récupère alors le contenu via :
$item->contentencoded;

Autrement, si on ne fait ça ça, il faut faire
$item->children('content', true)->encoded;
(alors qu’un tag <content> aurait été $item->content;)

Exemple de flux qui posait problème : http://feeds.feedburner.com/Memebase


@Bronco : du coup j’ai fait un pull-request là : https://github.com/broncowdd/feed2array
[ÉDIT 3 secondes 2/10 plus tard ] : t’es rapide pour merger, dis donc ! :O
— (permalink)