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.

eZ debug

Timing: Jan 18 2025 00:05:37
Script start
Timing: Jan 18 2025 00:05:37
Module start 'layout'
Timing: Jan 18 2025 00:05:37
Module start 'content'
Timing: Jan 18 2025 00:05:38
Module end 'content'
Timing: Jan 18 2025 00:05:38
Script end

Main resources:

Total runtime0.7274 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141152.6250
Module start 'layout' 0.00560.0044 740.539139.4531
Module start 'content' 0.00990.7158 779.9922632.4531
Module end 'content' 0.72580.0016 1,412.445312.4766
Script end 0.7273  1,424.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4377160.0002
Check MTime0.00130.1810160.0001
Mysql Total
Database connection0.00080.112110.0008
Mysqli_queries0.669592.0392650.0103
Looping result0.00070.0995630.0000
Template Total0.694995.520.3474
Template load0.00180.249720.0009
Template processing0.693195.286120.3465
Template load and register function0.00020.028910.0002
states
state_id_array0.00090.125410.0009
state_identifier_array0.00080.115320.0004
Override
Cache load0.00150.2120230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.082840.0002
Fetch class attribute name0.00140.187870.0002
XML
Image XML parsing0.00170.235440.0004
class_abstraction
Instantiating content class attribute0.00000.002570.0000
General
dbfile0.00370.5060310.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs