Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-12489

eZDOMNode#textContent() doesnt return CDATA

    XMLWordPrintable

Details

    Description

      I'm having somr trouble with the ezrssfeed extension, rss items are returned with empty titles when the title contains a CDATA tag. Seems to me eZDOMNode#collectTextContent should return the text in cdata tags, but as far as I can tell they're just ignored:

      function collectTextContent( $element )
      {
      $ret = '';
      if ( $element->Type == eZDOMNode::TYPE_TEXT ) // <----- Shouldn't this include CDATA?

      { $ret = $element->content(); }

      else
      {
      if ( count( $element->Children ) > 0 )
      {
      foreach( array_keys( $element->Children ) as $key )

      { $child =& $element->Children[$key]; $ret .= $this->collectTextContent( $child ); }

      }
      }
      return $ret;
      }

      Attachments

        Activity

          People

            gl gl
            ehalvorsen ehalvorsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: