I'm trying to embed some html in a array returned from a function that is used by Zend_Xml_Rpc_Server and having erratic results. Sometimes it works and sometimes it doesn't but I'm not sure how to specify the content in any way. For example in the example code I tried things like htmlentities() or...

'<![CDATA[' . $content->body . ']]>',

...but in many cases (particularly with tricky html) the description ends up as an empty string.

The example code in the method:

$contentTable = new ContentTable;
$row = $contentTable->find($filterInt->filter($postid));
$content = $row->current();

$struct = array(
    'pubDate'     => $content->date_created,
    'postid'      => $content->id,
    'author'      => $content->creator,
    'description' => $content->body,
    'title'       => $content->title,
'link' => 'http://' . $this->_config->server . '/' . $content->type . '/' . $content->ref . '/'
);
return $struct;

Any help is appreciated, thanks,

Nick

Reply via email to