Share » Forums » General » converting XML Block to Text Block

converting XML Block to Text Block

converting XML Block to Text Block

Tuesday 16 May 2006 5:54:00 am - 2 replies

Author Message

Felix Laate

Tuesday 16 May 2006 6:06:32 am

Hi André!

You could use <i>strip_tags</i>. But you need to set it up first in the [php]-block of template.ini:

[PHP]
PHPOperatorList[striptags]=strip_tags

Then use it in templates like this:

{$node.data_map._ATTRIBUTE_NAME_.content.output.output_text|striptags()}

Hope this will help you!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Xavier Dutoit

Tuesday 16 May 2006 6:36:09 am

Hi,

You are obvioulsy going to loose the new lines (as it strips <p> tags too). I haven't find a better solution, but if you find something, please share.

X+

http://www.sydesy.com

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu