Wednesday 03 June 2009 3:20:52 am
Hi Hakim, To get the XHTML output of an XML Block attribute, you can write something like :
$dataMap = $node->attribute( 'data_map' );
$output = $dataMap['your_attribute_identifier']->attribute( 'content' )->attribute( 'output' );
$xhtml = $ouput->attribute( 'output_text' );
And to convert the XHTML to plain text, you can use the strip_tags PHP function [1] [1] http://php.net/strip_tags
Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
|