convert bloc xml to bloc text

Author Message

Didier Kalulambi

Monday 11 October 2010 8:10:09 am

I need the javascript to convert the contents of a xml text block block

Heath

Monday 11 October 2010 3:25:38 pm

Hello Didier,

Could you explain more about your needs.

What do you need to convert an xml block to?

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Monday 11 October 2010 3:49:11 pm

Why not just simply switch the content object class attribute from a ezxmltext datatype to a text block datatype attribute?

Cheers,

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Lo' F.

Saturday 16 October 2010 10:40:46 am

"

I need the javascript to convert the contents of a xml text block block

"

..do you mean from an xml block to a simple text block? If so, instead of javascript why don't you apply a |strip_tags() operator following your string?

If you really need a javascript, perhaps this link might be useful (http://www.stemkoski.com/what-is-javascript%E2%80%99s-equivalent-to-php-strip_tags/)

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.