[daisy] HTML Cleaner

Michael Halpin mhalpin at globaluniversity.edu
Fri Apr 25 18:37:52 CEST 2008


If I manually add the tag in the source-view mode and hit the clean
button it removes the tag.

I tried using alt title and some other standard tag names but it
faithfully cleans each away.

-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Karel Vervaeke
Sent: Tuesday, April 22, 2008 2:05 AM
To: Daisy: open source CMS - general mailinglist
Subject: RE: [daisy] HTML Cleaner

Are you sure the attribute is removed by the htmlcleaner and not later
by one of the cocoon pipeline components? To check this, you should
check the part data using
http://example.com/.../site/123-DSY/version/1/part/SimpleDocumentContent
/data
or use htmlarea in source-view mode and use the 'clean' button.

As a sidetrack, try calling your attribute "title" or "alt" (something
that is in the html DTD). (This would not be a final solution but it
would help identify the problem).

HTH,
Karel

On Mon, 2008-04-21 at 16:30 -0500, Michael Halpin wrote:
> I am running 2.1 at the moment.  I have not put them in the allowed
div
> or span classes because since it is not a class attribute.
> 
> -----Original Message-----
> From: daisy-bounces at lists.cocoondev.org
> [mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Sieranski,
Greg
> Sent: Monday, April 21, 2008 3:58 PM
> To: open source CMS - general mailinglist
> Subject: Re: [daisy] HTML Cleaner
> 
> Michael Halpin wrote:
> >
> > I have changed the following code in the htmlcleaner.xml file:
> >
> >  
> >
> >       <element name="span">
> >
> >         <attribute name="class"/>
> >
> >       </element>
> >
> >  
> >
> > To:
> >
> >  
> >
> >       <element name="span">
> >
> >         <attribute name="class"/>
> >
> >         <attribute name="chapter-id"/>
> >
> >       </element>
> >
> >  
> >
> > I have saved the file.  Uploaded the change, restarted daisy, and 
> > cleared my browser cache but the cleaner is still removing my 
> > chapter-id tags.  Any ideas?
> >
> >
>
------------------------------------------------------------------------
> >
> > _______________________________________________
> > daisy community mailing list
> > Professional Daisy support:
> http://outerthought.org/en/services/daisy/support.html
> > mail to: daisy at lists.cocoondev.org
> > list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> >   
> We have modified the htmlcleaner previously and had not problems with
it
> 
> picking up our changes. What version of Daisy are you running? Also,
did
> 
> you put the elements in the:
> 
>  <allowed-div-classes>
>  </allowed-div-classes>
> 
> or
> 
>  <allowed-span-classes>
>  </allowed-span-classes>
> 
> Regards,
> Greg Sieranski
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/en/services/daisy/support.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list