Forums / Setup & design / HTML code is no longer interpreted

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 !

eZ debug

Timing: Jan 18 2025 10:36:23
Script start
Timing: Jan 18 2025 10:36:23
Module start 'content'
Timing: Jan 18 2025 10:36:23
Module end 'content'
Timing: Jan 18 2025 10:36:23
Script end

Main resources:

Total runtime0.1684 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 589.1641180.8281
Module start 'content' 0.00990.0054 769.9922102.0078
Module end 'content' 0.01530.1530 872.0000532.3281
Script end 0.1683  1,404.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.2316200.0002
Check MTime0.00150.9130200.0001
Mysql Total
Database connection0.00150.868810.0015
Mysqli_queries0.122272.58281410.0009
Looping result0.00140.83781390.0000
Template Total0.152690.710.1526
Template load0.00080.497710.0008
Template processing0.151890.153110.1518
Override
Cache load0.00060.347310.0006
Sytem overhead
Fetch class attribute can translate value0.00070.391310.0007
XML
Image XML parsing0.00020.106210.0002
General
dbfile0.00201.1605200.0001
String conversion0.00000.004530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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