[opencms-dev] Opencms6: Cleanup HTML is rather drastic?

Dimitri Frederickx dimitri.frederickx at groept.be
Sat Mar 19 16:45:35 CET 2005


I would say: long live the 'drastic' cleaning. I think it's something
everyone should do with his code, but it should be a little bit more
fine-tuned. It should get rid of all font tags and other annoying html-code,
so that no layout or markup is present in the html. But it should leave divs
and spans untouched. Layout should be present in a css-file.

For those who are wondering if it is possible to remove all layout and stuff
like that in his html, and put everything in css: yes it is possible. Take a
look at csszengarden.com and find out what amazing things you can do with
css. This is the way every webside should be made (at least mine are).

Dimitri

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frans Postma
Sent: zaterdag 19 maart 2005 16:01
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] Opencms6: Cleanup HTML is rather drastic?


Never thought I would hear that famous bug/feature line again :-)

It only does the 'drastic' cleaning when I press the CleanUp button, e.g.
FONT tags survive normal saving and editing. I'll leave
the button alone then, best to use tidy in some more forgiving mode for me
:)

But thanks for clearing that up, had me wondering.

Frans

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of 
> Alexander Kandzior
> Sent: zaterdag 19 maart 2005 14:40
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] Opencms6: Cleanup HTML is rather drastic?
> 
> Frans,
> 
> It's not a bug, it's a feature.
> 
> The "drastic" behaviour is intended. Actually this is a set of Jtidy
> settings that are required to fully clean up HTML code 
> copy/pasted from MS
> Word. For this purpose (cleaning up from MS Word) the code works well.
> 
> We have been thinking about adding a selection to the cleanup button,
> allowing the user to select between "mild", "medium" and 
> "drastic" cleanup
> (or something like this). However this feature is currently 
> not being worked
> on since other matters are more pressing.
> 
> Best Regards,
> Alex.
> 
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com
> 
>  
> 
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org 
> > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frans Postma
> > Sent: Saturday, March 19, 2005 10:54 AM
> > To: 'The OpenCms mailing list'
> > Subject: RE: [opencms-dev] Opencms6: Cleanup HTML is rather drastic?
> > 
> > Yes, I used the CleanUp button while in source-mode. You can 
> > see the font codes vanish ;-) I'll try to find where/what 
> > removes those tags. (prefer to file a bugreport with some 
> > sort of solution pointer) 
> > 
> > > -----Original Message-----
> > > From: opencms-dev-bounces at opencms.org 
> > > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bernd 
> > Wolfsegger
> > > Sent: zaterdag 19 maart 2005 5:29
> > > To: The OpenCms mailing list
> > > Subject: Re: [opencms-dev] Opencms6: Cleanup HTML is 
> rather drastic?
> > > 
> > > Hi,
> > > 
> > > did you press the "togglesourcecode" button afterwards?
> > > Because in the WYSIWYG mode you see no tags.
> > > 
> > > Sorry, just a question :)
> > > 
> > > But you are right, because even font tags are partly changed.
> > > So when I had a font tag with color and class attribute, 
> some time 
> > > later only the size attribut was left ..., I think 
> > afterwards adding 
> > > some text in front of the tag.
> > > 
> > > Regards, Bernd
> > > 
> > > On Saturday 19 March 2005 02:15, Frans Postma wrote:
> > > > Clean-up html cleans up a bit too much in opencms in my 
> > opinion; try 
> > > > pasting this into your editor:
> > > >
> > > > <FONT color=#00cc66>bla</FONT>
> > > > <span style="color: #00cc66">bla</span>
> > > >
> > > > Now press the Clean-up-HTML button and you will be left with:
> > > >
> > > > bla bla
> > > >
> > > > I checked using the jtidy.jar and it doesn't appear to be
> > > the cause of this
> > > > destructive behaviour. But the remaining regexps used to
> > > clean those word
> > > > o: tags can't be it either. Any ideas if this is actually 
> > expected 
> > > > behaviour??
> > > >
> > > > (does seem weird considering that the WYSIWYG editor uses
> > > FONT tags itself
> > > > for coloring text, shouldn't that be span/style eventually?)
> > > >
> > > > I don't want to file a bug in bugzilla if this is 
> > actually desired 
> > > > behaviour poorly understood by me ;-)
> > > >
> > > > Frans
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > This mail is send to you from the opencms-dev mailing 
> > list To change 
> > > > your list options, or to unsubscribe from the
> > > list, please visit
> > > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > > 
> > > 
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list 
> > To change 
> > > your list options, or to unsubscribe from the list, please visit 
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, 
> > please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > 
> > 
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list