[daisy] Problem with htmlcleaner
Andreas Deininger
adeininger at googlemail.com
Wed Oct 18 03:33:09 CDT 2006
Hi,
I would like to have the following html code snippet inside some my daisy docs:
<p><a href="#" onclick="myFunction;"> MyLink</a></p>
Since the onclick attribute is removed by default, I modified the
htmlcleaner.xml by adding the onlick attribute:
<!-- linking -->
<element name="a">
<attribute name="href"/>
<attribute name="onclick"/>
</element>
Now the onclick attribute is retained and everything looked o.k. at
the first glance.
However, if I edit that document again, I'm getting:
<p><a href="#" onclick="function onclick(event) { myFunction; }">
MyLink</a></p>
After I edit the document once more, I'm getting:
<p><a href="#" onclick="function onclick(event) { function
onclick(event) { myFunction; } }">MyLink</a></p>
and so forth. This effectively renders the onclick-attribute useless.
Any idea why that happens? Is there any additional entry needed in
htmlcleaner.xml?
TIA
--
Andreas
More information about the daisy
mailing list