HTML code is no longer interpreted

Author Message

Benjamin Lemoine

Friday 19 December 2008 2:24:53 am

Hi,
Since few weeks, my HTML code, inserted from the editor with the literal tag, is no longer interpreted by eZ Publish.
For instance, if i write this on my editor :

<literal class="html"><i>Hello World ! </i><br /></literal>

The article on the frontend will display :

<i>Hello World ! </i><br />

I've tryed to clear all cache (within the backend and from a shell with 'ezcache.php --clear-all')
but nothing has changed. I've also deleted the cache folder on /var

Regarding my content.ini files,
- settings/content.ini :

[literal]
AvailableClasses[]
# The class 'html' is disabled by default because it gives editors the
# possibility to insert html and javascript code in XML blocks.
# Don't enable the 'html' class unless you really trust all users who has
# privileges to edit objects containing XML blocks.
#AvailableClasses[]=html
CustomAttributes[]

- settings/siteaccess/mysite/content.ini :

[literal]
AvailableClasses[]
AvailableClasses[]=html

- settings/override/content.ini :

Nothing about the html class

Any idea about my problem ?
Thanks.

Benjamin

B. Nkengsong

Sunday 04 January 2009 10:30:29 am

Hello,

Can you be more clear ? Which editor do you use. ezoe4.x, ezoemce or FCKEditor ?

Br
Beegee

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

Benjamin Lemoine

Wednesday 07 January 2009 3:02:40 am

Hello,

I'm using eZ Online Editor 4.2
And eZ Publish 3.9.2.

Benjamin Lemoine

Sunday 11 January 2009 11:34:11 pm

Please, can someone help me ?
I don't know what to do anymore ...

Marco Zinn

Monday 12 January 2009 11:56:24 am

Hi,

you write, that your settings/content.ini has this:

[literal]
AvailableClasses[]
# The class 'html' is disabled by default because it gives editors the
# possibility to insert html and javascript code in XML blocks.
# Don't enable the 'html' class unless you really trust all users who has
# privileges to edit objects containing XML blocks.
#AvailableClasses[]=html
CustomAttributes[]

If this is true, then try removing the # in the line AvailableClasses[]=html

Should be like this:

[literal]
AvailableClasses[]
# The class 'html' is disabled by default because it gives editors the
# possibility to insert html and javascript code in XML blocks.
# Don't enable the 'html' class unless you really trust all users who has
# privileges to edit objects containing XML blocks.
AvailableClasses[]=html
CustomAttributes[]

I guess, you did an update. Since some 3.x version, the HTML class has been disabled by default (as the comment says).

Marco
http://www.hyperroad-design.com

kracker (the)

Tuesday 13 January 2009 5:48:49 am

I also tried to reproduce this feature and only get the same response as <i>Benjamin Lemoine</i>

<i>grrr,
//kracker

Kanye West : Say you will ...</i>

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

Benjamin Lemoine

Wednesday 14 January 2009 8:14:59 am

Hi
I finally solved my problem.
It wasn't due to settings/content.ini but to the extension "ezsh" (used to colorize literal text).
So the html tag wasn't interpreted.
I disabled the extension and everything came back to normal.

Thank you !

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 15:08:44
Script start
Timing: Jan 18 2025 15:08:44
Module start 'layout'
Timing: Jan 18 2025 15:08:44
Module start 'content'
Timing: Jan 18 2025 15:08:44
Module end 'content'
Timing: Jan 18 2025 15:08:44
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1328152.6250
Module start 'layout' 0.00490.0028 741.757839.4453
Module start 'content' 0.00770.0050 781.203197.4609
Module end 'content' 0.01260.0017 878.664138.3047
Script end 0.0143  916.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.7318140.0002
Check MTime0.00106.6228140.0001
Mysql Total
Database connection0.00053.526610.0005
Mysqli_queries0.002617.781030.0009
Looping result0.00000.104710.0000
Template Total0.00139.110.0013
Template load0.00075.019010.0007
Template processing0.00064.028510.0006
Override
Cache load0.00053.541610.0005
General
dbfile0.00032.070880.0000
String conversion0.00000.063240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs