Closed GoogleCodeExporter closed 9 years ago
I get the same error when using "style" inline with the div. I am trying to
make it accept inline CSS as well as <style> tag with CSS. I have been trying
to figure this out for a couple weeks.
Original comment by jtra...@gmail.com
on 1 Dec 2010 at 2:07
I get the same error. I want to use the library in combination with Confluence
Wiki for developing a plugin. And the error occurs when I put an <style> -
Element in snippet that should clean from Antisamy.
Original comment by nmaas...@googlemail.com
on 6 Dec 2010 at 10:14
You need all of AntiSamy's dependencies. When you want to use stylesheet
validation the library looks up Apache Commons HTTP library - something it
needs to do offsite CSS retrieval.
The required dependencies are as follows:
* Apache Xerces 2.8.1
* Apache Batik-CSS 1.7
* NekoHTML 1.9.12
* Apache Commons HTTP-Client 3.1
Original comment by arshan.d...@gmail.com
on 6 Dec 2010 at 6:13
This may help anyone running AntiSamy in a Maven build.
To get this working I also had to explicitly import Batik (it only showed up as
a problem once we were validating some allowed CSS).
<!-- AntiSamy itself -->
<dependency>
<groupId>org.owasp.antisamy</groupId>
<artifactId>antisamy</artifactId>
<version>1.4.3</version>
</dependency>
<!-- Explicit import of Batik -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-css</artifactId>
<version>1.7</version>
</dependency>
<!-- And the correct version of Commons HTTPCLient -->
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
Original comment by RedYetiD...@gmail.com
on 17 Feb 2011 at 10:13
Original issue reported on code.google.com by
huba...@gmail.com
on 22 Nov 2010 at 10:11