File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ extensive test suite, and has undergone
1818how to get started with or without Maven.
1919
2020You can use
21- [ prepackaged policies] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/Sanitizers.html ) :
21+ [ prepackaged policies] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/Sanitizers.html ) :
2222
2323``` Java
2424PolicyFactory policy = Sanitizers . FORMATTING. and(Sanitizers . LINKS );
@@ -28,7 +28,7 @@ String safeHTML = policy.sanitize(untrustedHTML);
2828or the
2929[ tests] ( https://github.com/OWASP/java-html-sanitizer/blob/master/src/test/java/org/owasp/html/HtmlPolicyBuilderTest.java )
3030show how to configure your own
31- [ policy] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/HtmlPolicyBuilder.html ) :
31+ [ policy] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/HtmlPolicyBuilder.html ) :
3232
3333``` Java
3434PolicyFactory policy = new HtmlPolicyBuilder ()
@@ -41,7 +41,7 @@ String safeHTML = policy.sanitize(untrustedHTML);
4141```
4242
4343or you can write
44- [ custom policies] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/ElementPolicy.html )
44+ [ custom policies] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/ElementPolicy.html )
4545to do things like changing ` h1 ` s to ` div ` s with a certain class:
4646
4747``` Java
Original file line number Diff line number Diff line change 33 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
44 <artifactId >aggregate</artifactId >
55 <packaging >pom</packaging >
6- <version >20181114.2-SNAPSHOT </version >
6+ <version >20190325.1 </version >
77 <parent >
88 <relativePath >../parent</relativePath >
99 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
1010 <artifactId >parent</artifactId >
11- <version >20181114.2-SNAPSHOT </version >
11+ <version >20190325.1 </version >
1212 </parent >
1313
1414 <modules >
Original file line number Diff line number Diff line change 11# OWASP Java HTML Sanitizer Change Log
22
33Most recent at top.
4- * Pending
4+ * Release 20190325.1
55 * Properly parse ` srcset ` attribute values to apply URL policy to
66 each URL in turn.
77 * Update dependency on guava version to 27.1-jre to avoid causing clients
Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ it to HTML.
3030The
3131[ javadoc] ( http://javadoc.io/doc/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/ )
3232covers more detailed topics, including
33- [ customization] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/HtmlPolicyBuilder.html ) .
33+ [ customization] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/HtmlPolicyBuilder.html ) .
3434
3535Important classes are:
3636
37- * [ Sanitizers] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/Sanitizers.html ) contains combinable pre-packaged policies.
38- * [ HtmlPolicyBuilder] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/HtmlPolicyBuilder.html ) lets you easily build custom policies.
37+ * [ Sanitizers] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/Sanitizers.html ) contains combinable pre-packaged policies.
38+ * [ HtmlPolicyBuilder] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/HtmlPolicyBuilder.html ) lets you easily build custom policies.
3939
4040For advanced use, see:
41- * [ AttributePolicy] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/AttributePolicy.html ) and [ ElementPolicy] ( http://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20180219.1/org/owasp/html/ElementPolicy.html ) allow complex customization.
42- * [ HtmlStreamEventReceiver] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/org/owasp/html/HtmlStreamEventReceiver.html ) if you don't just want a ` String ` as output.
41+ * [ AttributePolicy] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/AttributePolicy.html ) and [ ElementPolicy] ( http://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20180219.1/org/owasp/html/ElementPolicy.html ) allow complex customization.
42+ * [ HtmlStreamEventReceiver] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/org/owasp/html/HtmlStreamEventReceiver.html ) if you don't just want a ` String ` as output.
4343
4444## Asking Questions
4545
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Bigger numbers are more recent and the [change log](../change_log.md)
2323can shed light on the salient differences.
2424
2525You should be able to build with the HTML sanitizer. You can read the
26- [ javadoc] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20181114 .1/index.html ) ,
26+ [ javadoc] ( https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190325 .1/index.html ) ,
2727and if you have questions that aren't answered by these wiki pages,
2828you can ask on the
2929[ mailing list] ( http://groups.google.com/group/owasp-java-html-sanitizer-support ) .
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
44 <artifactId >html-types</artifactId >
5- <version >20181114.2-SNAPSHOT </version >
5+ <version >20190325.1 </version >
66 <packaging >jar</packaging >
77 <parent >
88 <relativePath >../parent</relativePath >
99 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
1010 <artifactId >parent</artifactId >
11- <version >20181114.2 -SNAPSHOT</version >
11+ <version >20190325.1 -SNAPSHOT</version >
1212 </parent >
1313
1414 <name >empiricism</name >
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
44 <artifactId >html-types</artifactId >
5- <version >20181114.2-SNAPSHOT </version >
5+ <version >20190325.1 </version >
66 <packaging >jar</packaging >
77 <parent >
88 <relativePath >../parent</relativePath >
99 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
1010 <artifactId >parent</artifactId >
11- <version >20181114.2-SNAPSHOT </version >
11+ <version >20190325.1 </version >
1212 </parent >
1313
1414 <name >OWASP Java HTML Sanitizer Safe HTML Compatibility</name >
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
44 <artifactId >parent</artifactId >
5- <version >20181114.2-SNAPSHOT </version >
5+ <version >20190325.1 </version >
66
77 <packaging >pom</packaging >
88
Original file line number Diff line number Diff line change 66 <relativePath >parent</relativePath >
77 <groupId >com.googlecode.owasp-java-html-sanitizer</groupId >
88 <artifactId >parent</artifactId >
9- <version >20181114.2-SNAPSHOT </version >
9+ <version >20190325.1 </version >
1010 </parent >
1111
1212 <name >OWASP Java HTML Sanitizer</name >
You can’t perform that action at this time.
0 commit comments