Changeset 84422 in spip-zone


Ignore:
Timestamp:
Aug 31, 2014, 2:45:40 PM (7 years ago)
Author:
teddy.spip@…
Message:

Prise en compte des CDATA dans les tags texte.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/rss_commits/trunk/inc/analyser_rss_commits.php

    r84421 r84422  
    1919        $page = preg_replace("/content:encoded\>/", "texte>", $page);
    2020        // Merci _Eric_ pour ce code.
    21         $xml = json_decode(json_encode(simplexml_load_string($page)), true);
     21        $xml = json_decode(json_encode(simplexml_load_string($page, NULL, LIBXML_NOCDATA), JSON_PRETTY_PRINT), true);
    2222    }
    2323
Note: See TracChangeset for help on using the changeset viewer.