htmlcleaner.xml - allowing class attribute-values in all elements

View: New views
2 Messages — Rating Filter:   Alert me  

htmlcleaner.xml - allowing class attribute-values in all elements

by Alex Bleasdale :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've been customising the htmlcleaner.xml and I was hoping someone could help.  Is there a way to allow for a series of class values to be used on *any* allowed elements?  e.g.

<p class="style-one">para</p>
<a class="style-one" href="#">link</p>
<h1 class="style-one">heading</h1>

I've added:
        <attribute name="class"/>
        <attribute name="id"/>
To all of the allowed elements.

Then I tried adding (as a guess):

    <allowed-classes>
      <class>style-one</class>
      <class>style-two</class>
      <class>style-three</class>
    </allowed-classes>

At the top of the xml (between allowed-span-classes and allowed-div-classes), but unsurprisingly I saw this message on restart/re-edit:

unexpected element allowed-classes inside cleanup

Is there a way to express this in the xml?  If not, could this be something I could add fairly easily?  I haven't looked at the source yet - wanted to ask here first.

Any help / advice would be really appreciated; thanks
A

Re: htmlcleaner.xml - allowing class attribute-values in all elements

by Alex Bleasdale :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To follow up on this - v2.3 seems to do exactly what we want, so if anyone else was wondering about this (and using 2.2 or earlier), I'd recommend updating if you can :)

Thanks,
A