Forums / Developer / convert bloc xml to bloc text

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

kracker

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